mirror of
https://github.com/penpot/penpotqa.git
synced 2024-07-06 04:51:46 +00:00
Merge pull request #32 from penpot/PENPOT-1496
Add PENPOT-1496. Undo deleted component
This commit is contained in:
commit
f28ffda261
|
@ -32,6 +32,24 @@ test.afterEach(async ({ page }, testInfo) => {
|
|||
await updateTestResults(testInfo.status, testInfo.retry)
|
||||
});
|
||||
|
||||
|
||||
mainTest(qase(1496,'PENPOT-1496 Undo deleted component'), async ({ browserName }) => {
|
||||
await mainPage.createDefaultRectangleByCoordinates(200, 300);
|
||||
await mainPage.createComponentViaRightClick();
|
||||
await mainPage.waitForChangeIsSaved();
|
||||
await mainPage.duplicateLayerViaRightClick();
|
||||
await mainPage.waitForChangeIsSaved();
|
||||
await layersPanelPage.clickCopyComponentOnLayersTab();
|
||||
await designPanelPage.changeAxisXandYForLayer('400', '300');
|
||||
await mainPage.waitForChangeIsSaved();
|
||||
await mainPage.pressDeleteKeyboardButton()
|
||||
await expect(mainPage.viewport).toHaveScreenshot('rectangle-copy-component-delete.png');
|
||||
await mainPage.clickShortcutCtrlZ(browserName);
|
||||
await expect(mainPage.viewport).toHaveScreenshot(
|
||||
'rectangle-copy-component-delete-undo.png',
|
||||
);
|
||||
});
|
||||
|
||||
mainTest(qase(1497,'PENPOT-1497 Delete copy component from DEL button'), async () => {
|
||||
await mainPage.createDefaultRectangleByCoordinates(200, 300);
|
||||
await mainPage.createComponentViaRightClick();
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
Loading…
Reference in New Issue
Block a user