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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add isClickable method #39

Merged
merged 1 commit into from
Mar 9, 2023
Merged

feat: add isClickable method #39

merged 1 commit into from
Mar 9, 2023

Conversation

just-boris
Copy link
Member

@just-boris just-boris commented Mar 8, 2023

Description of changes:

Added page.isClickable('.selector') method to reuse across tests

Tried element.isEnabled() too, but it is not very universal (does not consider pointer-events: none, which we use for disabled buttons with hrefs). isClickable covers more cases

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@just-boris just-boris changed the title add isEnabled method feat: add isEnabled method Mar 8, 2023
@codecov
Copy link

codecov bot commented Mar 8, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.06 🎉

Comparison is base (61879b1) 90.63% compared to head (0cae230) 90.69%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #39      +/-   ##
==========================================
+ Coverage   90.63%   90.69%   +0.06%     
==========================================
  Files          21       21              
  Lines         459      462       +3     
  Branches       49       49              
==========================================
+ Hits          416      419       +3     
  Misses         36       36              
  Partials        7        7              
Impacted Files Coverage Δ
src/page-objects/base.ts 92.85% <100.00%> (+0.19%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@just-boris just-boris marked this pull request as ready for review March 8, 2023 06:09
@just-boris just-boris requested a review from a team as a code owner March 8, 2023 06:09
@just-boris just-boris requested review from connorlanigan and removed request for a team March 8, 2023 06:09
@just-boris just-boris changed the title feat: add isEnabled method feat: add isClickable method Mar 8, 2023
@just-boris just-boris merged commit 7f2affb into main Mar 9, 2023
@just-boris just-boris deleted the is-enabled-method branch March 9, 2023 11:30
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.

2 participants