update snapshots

This commit is contained in:
Staschalapko 2024-07-12 02:00:00 +03:00
parent 880e67cf09
commit abf09ac6ec
10 changed files with 9 additions and 5 deletions

View File

@ -29,8 +29,8 @@ exports.BasePage = class BasePage {
'ul[class*="workspace_context_menu"] li:has-text("Show")',
);
this.focusOnLayerMenuItem = page.locator(
'ul[class*="workspace_context_menu"] li:has-text("Focus on")',
);
'ul[class*="workspace_context_menu"] *:has-text("Focus on")',
).last();
this.transformToPathMenuItem = page.locator(
'ul[class*="workspace_context_menu"] li:has-text("Transform to path")',
);
@ -95,8 +95,12 @@ exports.BasePage = class BasePage {
this.duplicateOption = page.locator(
'ul[class*="workspace_context_menu"] span:has-text("Duplicate")',
);
this.copyOption = page.getByRole('listitem').filter({ hasText: 'Copy'});
this.pasteOption = page.getByRole('listitem').filter({ hasText: 'Paste'});
this.copyOption = page.locator(
'ul[class*="workspace_context_menu"] span:has-text("Copy")',
);
this.pasteOption = page.locator(
'ul[class*="workspace_context_menu"] span:has-text("Paste")',
);
this.groupOption = page.locator(
'ul[class*="workspace_context_menu"] span:has-text("Group")',
);

View File

@ -887,7 +887,7 @@ exports.MainPage = class MainPage extends BasePage {
}
async copyLayerViaRightClick() {
const layerSel = this.page.locator('div[class="viewport"] [id^="shape"]');
const layerSel = this.page.locator('.viewport-selrect');
await layerSel.last().click({ button: 'right', force: true });
await this.copyOption.click();
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB