fix failed tests after weekly run

This commit is contained in:
KateMaruk 2023-07-29 12:30:02 +03:00
parent e2db961fd5
commit c37a6e2210
7 changed files with 5 additions and 3 deletions

View File

@ -129,7 +129,7 @@ exports.DashboardPage = class DashboardPage extends BasePage {
//Libraries & Templates
this.librariesAndTemplatesCarouselButton = page.locator(
'//*[text()="Libraries & Templates"]//parent::button'
'div.dashboard-templates-section div.title button'
);
this.librariesAndTemplatesSection = page.locator(
'div[class^="dashboard-templates-section"]'

View File

@ -98,7 +98,6 @@ exports.MainPage = class MainPage extends BasePage {
this.fourthCornerRadiusInput = page.locator('div[class="input-element mini"] input >> nth=3');
this.sizeWidthInput = page.locator('div[class="input-element width"] input');
this.sizeHeightInput = page.locator('div[class="input-element height"] input');
this.canvasBackgroundBlock = page.locator('div[class="element-set-title"]:has-text("Canvas background")');
//Design panel - Shadow section
this.shadowSection = page.locator('div.element-set-title:has-text("Shadow")');
@ -2352,7 +2351,7 @@ exports.MainPage = class MainPage extends BasePage {
}
async waitDesignTabCollapsed() {
await expect(this.canvasBackgroundBlock).toBeHidden();
await expect(this.strokeSection).toBeHidden();
}
};

View File

@ -166,6 +166,7 @@ mainTest(
await mainPage.clickViewportTwice();
await mainPage.minimizeFileLibraryTypography();
await mainPage.createDefaultTextLayer(browserName);
await mainPage.changeHeightAndWidthForLayer("100", "100");
await mainPage.clickFileLibraryTypographiesTypographyRecord();
await mainPage.waitForChangeIsSaved();
await mainPage.clickViewportTwice();
@ -191,6 +192,7 @@ mainTest(
await mainPage.clickViewportTwice();
await mainPage.minimizeFileLibraryTypography();
await mainPage.createDefaultTextLayer(browserName);
await mainPage.changeHeightAndWidthForLayer("100", "100");
await mainPage.pressOpenTypographiesBottomPanelShortcut();
await mainPage.clickFontRecordOnTypographiesBottomPanel();
await mainPage.waitForChangeIsSaved();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -42,6 +42,7 @@ dashboardTest(
async ({ page }) => {
const dashboardPage = new DashboardPage(page);
await dashboardPage.clickLibrariesAndTemplatesCarouselButton();
await dashboardPage.isLibrariesAndTemplatesSectionDisplayed();
await dashboardPage.clickLibrariesAndTemplatesCarouselButton();
await dashboardPage.isLibrariesAndTemplatesSectionNotDisplayed();
}