Skip to content

Conversation

@dev-jonghoonpark
Copy link
Contributor

related issue: #28899

Motivation:

Introduce keyboard shortcuts for common actions in the Playwright UI test runner to enhance developer productivity and streamline the test execution process.

Modification:

Make shortcut keydown event in uiModeView.tsx

Result:

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

sendMessageNoReply('stop');
} else if (e.code === 'KeyU' && (e.metaKey || e.ctrlKey)) {
e.preventDefault();
reloadTests();
Copy link
Contributor

@mxschmitt mxschmitt Mar 12, 2024

Choose a reason for hiding this comment

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

I feel like KeyR should be reload which seems more natural to the users. Maybe Enter+Command should be run?

Copy link
Contributor Author

@dev-jonghoonpark dev-jonghoonpark Mar 12, 2024

Choose a reason for hiding this comment

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

I feel like KeyR should be reload which seems more natural to the users. Maybe Enter+Command should be run?

Thank you for your reply.
Then I'll change it to Enter+Command.

@github-actions

This comment has been minimized.

@dev-jonghoonpark
Copy link
Contributor Author

As comments are edited
Finally, I changed it to 'Ctrl/Cmd + Enter'.
@mxschmitt

@github-actions

This comment has been minimized.

@mxschmitt
Copy link
Contributor

Sorry for the late reply. We thought a little bit about it, when you are on a test item, you can already as of today press Enter in order to run a test. So I'd start with F5 / F6 now for reloading and stopping the current tests.

What do you think? I pushed to your branch, but need to adjust tests.

@dev-jonghoonpark
Copy link
Contributor Author

F5 / F6 are also good.
I adjusted the tests.

@github-actions

This comment has been minimized.

@mxschmitt mxschmitt merged commit b929c0d into microsoft:main Mar 19, 2024
@github-actions
Copy link
Contributor

Test results for "tests 1"

8 flaky ⚠️ [chromium-library] › library/tracing.spec.ts:243:5 › should not include trace resources from the previous chunks
⚠️ [firefox-library] › library/trace-viewer.spec.ts:1012:1 › should ignore 304 responses
⚠️ [firefox-library] › library/tracing.spec.ts:243:5 › should not include trace resources from the previous chunks
⚠️ [playwright-test] › ui-mode-test-ct.spec.ts:215:5 › should watch component via util
⚠️ [chromium-page] › page/workers.spec.ts:199:3 › should report and intercept network from nested worker
⚠️ [playwright-test] › ui-mode-test-screencast.spec.ts:21:5 › should show screenshots
⚠️ [playwright-test] › ui-mode-test-screencast.spec.ts:21:5 › should show screenshots
⚠️ [webkit-library] › library/browsercontext-remove-cookies.spec.ts:40:3 › should remove cookies by domain

26830 passed, 620 skipped
✔️✔️✔️

Merge workflow run.

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.

[Feature] - Key Shortcuts for Playwright UI Test Runner

2 participants