Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
knadonenkoepam committed Dec 12, 2024
1 parent 884beec commit d333ff8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
cutToClipboardByKeyboard,
dragMouseTo,
LeftPanelButton,
moveMouseAway,
moveOnAtom,
openDropdown,
openFile,
Expand Down Expand Up @@ -1388,6 +1389,7 @@ test.describe('Multi-Tailed Arrow Tool', () => {
await addTailToArrow(page, 2);
await hoverOverArrowSpine(page, 2, 'right');
await expect(page.getByText('Add new tail')).toBeDisabled();
await moveMouseAway(page);
await takeEditorScreenshot(page);
await verifyFile2(
page,
Expand Down
3 changes: 3 additions & 0 deletions ketcher-autotests/tests/utils/canvas/tools/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,13 +517,15 @@ export async function selectZoomInTool(page: Page, count = 1) {
await selectButtonByTitle(MacromoleculesTopPanelButton.ZoomIn, page);
});
}
await page.getByTestId('zoom-selector').click();
}

export async function selectZoomReset(page: Page) {
await page.getByTestId('zoom-selector').click();
await waitForRender(page, async () => {
await selectButtonByTitle(MacromoleculesTopPanelButton.ZoomReset, page);
});
await page.getByTestId('zoom-selector').click();
}

export async function selectZoomOutTool(page: Page, count = 1) {
Expand All @@ -533,4 +535,5 @@ export async function selectZoomOutTool(page: Page, count = 1) {
await selectButtonByTitle(MacromoleculesTopPanelButton.ZoomOut, page);
});
}
await page.getByTestId('zoom-selector').click();
}

0 comments on commit d333ff8

Please sign in to comment.