-
Notifications
You must be signed in to change notification settings - Fork 169
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
#3221 - add shortcut shift+tab for switching selection mode #3287
#3221 - add shortcut shift+tab for switching selection mode #3287
Conversation
…d-shortcut-shift+tab-for-switching-selection-mode
…ut-shift+tab-for-switching-selection-mode
be0f277
to
374cd3a
Compare
|
||
test.describe('Hot keys', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto(''); |
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.
Could you, please use waitForPageInit
?
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.
If you use waitForPageInit
, there is no need to use await page.goto('')
as it is already inside that function
ketcher-autotests/tests/User-Interface/Hot-Keys/hotkeys.spec.ts
Outdated
Show resolved
Hide resolved
…d-shortcut-shift+tab-for-switching-selection-mode
a8f026a
to
d20c334
Compare
32dddfc
to
a26a44e
Compare
@@ -0,0 +1,36 @@ | |||
/* eslint-disable no-magic-numbers */ |
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.
Can you remove this line? I don't see any magic numbers here
await selectNestedTool(page, SelectTool.FRAGMENT_SELECTION); | ||
await selectTool(LeftPanelButton.AddText, page); | ||
await page.keyboard.press('Escape'); | ||
expect(page.getByTestId('select-fragment')).toBeVisible(); |
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 see these two tests are failing. Could you, please, add await
for expect? https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-be-visible
…ut-shift+tab-for-switching-selection-mode
Preview. No comments |
How the feature works? / How did you fix the issue?
(Screenshots, videos, or GIFs, if applicable)
Ketcher.v2.15.0.Vite.-.Google.Chrome.2023-09-12.10-40-57.mp4
Check list
#1234 – issue name