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

#3221 - add shortcut shift+tab for switching selection mode #3287

Merged

Conversation

StarlaStarla
Copy link
Collaborator

@StarlaStarla StarlaStarla commented Sep 12, 2023

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

image

Check list

  • unit-tests written
  • e2e-tests written
  • documentation updated
  • PR name follows the pattern #1234 – issue name
  • branch name doesn't contain '#'
  • PR is linked with the issue
  • base branch (master or release/xx) is correct
  • task status changed to "Code review"
  • reviewers are notified about the pull request

…d-shortcut-shift+tab-for-switching-selection-mode
@StarlaStarla StarlaStarla force-pushed the 3221-add-shortcut-shift+tab-for-switching-selection-mode branch from be0f277 to 374cd3a Compare September 15, 2023 08:59

test.describe('Hot keys', () => {
test.beforeEach(async ({ page }) => {
await page.goto('');
Copy link
Collaborator

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?

Copy link
Collaborator

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

@StarlaStarla StarlaStarla force-pushed the 3221-add-shortcut-shift+tab-for-switching-selection-mode branch from a8f026a to d20c334 Compare September 18, 2023 02:44
@StarlaStarla StarlaStarla force-pushed the 3221-add-shortcut-shift+tab-for-switching-selection-mode branch from 32dddfc to a26a44e Compare September 18, 2023 04:45
@@ -0,0 +1,36 @@
/* eslint-disable no-magic-numbers */
Copy link
Collaborator

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();
Copy link
Collaborator

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

@Nitvex Nitvex merged commit b4efc67 into master Sep 19, 2023
3 of 4 checks passed
@Nitvex Nitvex deleted the 3221-add-shortcut-shift+tab-for-switching-selection-mode branch September 19, 2023 11:46
@ViktoriaTkacheva
Copy link
Collaborator

Preview. No comments

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.

Add shortcut [Shift+Tab] for switching selection mode
4 participants