-
Notifications
You must be signed in to change notification settings - Fork 6
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
Dialog rework #148
Dialog rework #148
Conversation
|
|
||
```gherkin | ||
Scenario: accept alert | ||
Given I will wait for dialog |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be honest it is not obvious what this step is for, future tesnse confuses a bit.
Lets consider 2 other solutions:
- Rename the step to
Given I set alert listener
or more elegant solution - Using BeforeAll hook check if some of pickles include 'alert' keyword and then set the listener.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me listener
is more programming specific. I want to use this I will wait
for other types of event emitters available in playwright
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given I expect alert will appear in this scenario
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expect already has meaning of assertion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be honest I don't really like to make use of steps that dos not represent a business logic.
I know, this is not a silver bullet last option is adding a listener using a tag expression.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, but making it implicit will add more constraints and increase support cost
Description
Please describe your changes and any new features you're introducing, or issues you're fixing.
Related Issues
Please link any related issues or bug reports that this PR will address.