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

[webdriver] Enhance tests for implicitly accepting "beforeunload" prompts #44232

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

whimboo
Copy link
Contributor

@whimboo whimboo commented Jan 26, 2024

With this PR I'm going to add a couple of user prompt tests specific to beforeunload prompts which are very poorly covered at the moment. These are important to have to see what the current cross-browser behavior is and how this feature could potentially co-work with WebDriver BiDi where we do not want to implicitly dismiss this kind of dialog by default.

@whimboo
Copy link
Contributor Author

whimboo commented Jan 30, 2024

@sadym-chromium and @jgraham could you please review? Thanks.

Note that tests for Chrome are failing because the dialog isn't correctly accepted by default. Nevertheless the tests are according to the current WebDriver classic specification.

@sadym-chromium
Copy link
Contributor

sadym-chromium commented Jan 31, 2024

@nechaev-chromium PTAL

@whimboo
Copy link
Contributor Author

whimboo commented Feb 1, 2024

Given that only Chrome is failing to run these new tests and both Firefox and Safari work fine, I'm going to just merge this PR now that we got an approval. Thanks @nechaev-chromium!

@whimboo whimboo merged commit b145cb6 into web-platform-tests:master Feb 1, 2024
20 of 21 checks passed
@whimboo whimboo deleted the webdriver-beforeunload branch February 1, 2024 07:34
mbrodesser-Igalia pushed a commit to mbrodesser-Igalia/wpt that referenced this pull request Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants