This commit is contained in:
chalapkoStanislav 2024-06-06 15:43:29 +03:00
parent 9e43424854
commit a98dd6b7ee
13 changed files with 3 additions and 2 deletions

View File

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

View File

@ -50,6 +50,7 @@ test.beforeEach(async ({ page }) => {
await dashboardPage.deleteFileWithNameViaRightClick('New File 1');
await dashboardPage.clickDeleteFileButton();
await dashboardPage.checkNumberOfFiles('1 file');
await dashboardPage.openFileWithName('New File 2');
await mainPage.isSecondPageNameDisplayed('Main components');
});

View File

@ -51,7 +51,7 @@ test.describe(() => {
mainTest(qase(1452,'Show in assets panel option from Design tab'), async ({ page }) => {
const mainPage = new MainPage(page);
const designPanelPage = new DesignPanelPage(page);
await mainPage.clickOnLayerOnCanvas();
// await mainPage.clickOnLayerOnCanvas();
await designPanelPage.clickOnComponentMenuButton();
await designPanelPage.clickOnShowInAssetsPanel();
await expect(page).toHaveScreenshot('component-show-in-assets-panel.png', {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 244 KiB

After

Width:  |  Height:  |  Size: 212 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB