Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

has_css? should return a boolean. Fix for Issue: #585. #624

Merged
merged 1 commit into from
Sep 10, 2021

Conversation

BrooklinJazz
Copy link
Contributor

@BrooklinJazz BrooklinJazz commented Sep 9, 2021

@adkron posted an issue: #585 that the has_css?/2 function was raising an exception.

This is my first PR in the project, and I'm new to open source 馃檹 Please let me know if I'm breaking any rules or need to adjust anything!

the has_css?/2 method was using find/1 instead of has?/1 causing it to throw an error instead of returning a boolean.

I've added testing and made test names consistent for has_css?/2, has_css/3, has_no_css?/2, and has_no_css/3 to make sure all work as expected.

the has_css?/2 method was using find/1 instead of has?/1 causing it to throw an error instead of a boolean
@BrooklinJazz BrooklinJazz changed the title has_css? should return a boolean has_css? should return a boolean. Fix for Issue: #585. Sep 9, 2021
Copy link
Contributor

@michallepicki michallepicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@codecov-commenter
Copy link

codecov-commenter commented Sep 9, 2021

Codecov Report

Merging #624 (7f42868) into main (d351c46) will increase coverage by 0.21%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #624      +/-   ##
==========================================
+ Coverage   91.81%   92.02%   +0.21%     
==========================================
  Files          24       24              
  Lines         941      941              
==========================================
+ Hits          864      866       +2     
+ Misses         77       75       -2     
Flag Coverage 螖
IntegrationTest 87.67% <100.00%> (+0.21%) 猬嗭笍
UnitTest 41.55% <0.00%> (酶)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage 螖
lib/wallaby/browser.ex 94.50% <100.00%> (+1.00%) 猬嗭笍

Continue to review full report at Codecov.

Legend - Click here to learn more
螖 = absolute <relative> (impact), 酶 = not affected, ? = missing data
Powered by Codecov. Last update d351c46...7f42868. Read the comment docs.

@michallepicki michallepicki merged commit c6b103a into elixir-wallaby:main Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants