mirror of
https://github.com/penpot/penpotqa.git
synced 2024-08-03 09:18:53 +00:00
fix failed tests after weekly run
This commit is contained in:
parent
e2db961fd5
commit
c37a6e2210
@ -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"]'
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
};
|
||||
|
@ -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 |
@ -42,6 +42,7 @@ dashboardTest(
|
||||
async ({ page }) => {
|
||||
const dashboardPage = new DashboardPage(page);
|
||||
await dashboardPage.clickLibrariesAndTemplatesCarouselButton();
|
||||
await dashboardPage.isLibrariesAndTemplatesSectionDisplayed();
|
||||
await dashboardPage.clickLibrariesAndTemplatesCarouselButton();
|
||||
await dashboardPage.isLibrariesAndTemplatesSectionNotDisplayed();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user