update snapshots
@ -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")',
|
||||
);
|
||||
|
@ -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();
|
||||
}
|
||||
|
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 75 KiB |
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 74 KiB |
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 75 KiB |
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 73 KiB |
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |