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

fix(keyboard): event order for Escape key #27711

Merged

Conversation

mxschmitt
Copy link
Member

@mxschmitt mxschmitt commented Oct 19, 2023

This test was failing in Chromium before this change.

Caused by

if (code === 'Escape' && await this._dragManger.cancelDrag())
return;

which messes up the order of the protocol calls.

Fixes #27709.

@mxschmitt mxschmitt force-pushed the bugfix/event-order-for-Escape-key branch from 9028c2b to 9e187f7 Compare October 19, 2023 15:29
@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

Test results for "tests 1"

2 failed
❌ [playwright-test] › playwright.artifacts.spec.ts:307:5 › should work with trace: on-all-retries
❌ [playwright-test] › reporter-html.spec.ts:257:5 › merged › should include image diff when screenshot failed to generate due to animation

4 flaky ⚠️ [firefox] › library/tracing.spec.ts:239:5 › should not include trace resources from the previous chunks
⚠️ [chromium] › library/tracing.spec.ts:239:5 › should not include trace resources from the previous chunks
⚠️ [webkit] › library/browsercontext-fetch.spec.ts:1039:3 › should abort requests when browser context closes
⚠️ [webkit] › page/page-wait-for-navigation.spec.ts:85:3 › should work with clicking on links which do not commit navigation

25902 passed, 603 skipped
✔️✔️✔️

Merge workflow run.

@mxschmitt mxschmitt merged commit b1325c9 into microsoft:main Oct 19, 2023
Germandrummer92 pushed a commit to OctoMind-dev/playwright that referenced this pull request Oct 27, 2023
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.

[BUG] keyboard.press("Escape") should not fire keyup Event before keydown Event for Chromium
2 participants