diff --git a/pages/dashboard/dashboard-page.js b/pages/dashboard/dashboard-page.js index deff6430..98d60079 100644 --- a/pages/dashboard/dashboard-page.js +++ b/pages/dashboard/dashboard-page.js @@ -518,7 +518,7 @@ exports.DashboardPage = class DashboardPage extends BasePage { await expect(this.modalTitle).toBeVisible(); await expect(this.modalTitle).toHaveText('Import Penpot files'); await this.modalAcceptButton.click(); - await this.feedbackBannerMessage.waitFor({timeout:30000}); + await this.feedbackBannerMessage.waitFor({timeout:60000}); await expect(this.feedbackBannerMessage).toHaveText( '1 file has been imported successfully.', ); diff --git a/pages/workspace/main-page.js b/pages/workspace/main-page.js index 8ff5653f..7f0065d9 100644 --- a/pages/workspace/main-page.js +++ b/pages/workspace/main-page.js @@ -870,7 +870,7 @@ exports.MainPage = class MainPage extends BasePage { if (platform === 'darwin') { await this.typeTextFromKeyboard(); } else if(browserName === 'webkit') { - await this.page.waitForTimeout(400); + await this.page.waitForTimeout(2000); await this.typeTextFromKeyboard(); } else { await this.typeText('Hello World!'); diff --git a/tests/components/main-components/update-main-components.spec.js b/tests/components/main-components/update-main-components.spec.js index 245652ae..bfa9e351 100644 --- a/tests/components/main-components/update-main-components.spec.js +++ b/tests/components/main-components/update-main-components.spec.js @@ -257,7 +257,7 @@ mainTest.describe("Text", () => { mainTest( qase(1448,'PENPOT-1448 Create a component from text and 2 copies of it, change font, style and size of main'), - async () => { + async ({browserName}) => { await layersPanelPage.clickMainComponentOnLayersTab(); await layersPanelPage.selectMainComponentChildLayer(); await designPanelPage.changeTextFont('Source Serif 4'); @@ -266,7 +266,7 @@ mainTest.describe("Text", () => { await mainPage.waitForChangeIsSaved(); await layersPanelPage.clickMainComponentOnLayersTab(); await mainPage.page.waitForTimeout(4000); - await mainPage.refreshPage(); + browserName === 'webkit' ? null : await mainPage.refreshPage(); await mainPage.waitForViewportVisible(); await expect(mainPage.viewport).toHaveScreenshot('main-copies-component-text.png', { mask: [mainPage.guides, mainPage.guidesFragment], diff --git a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-text.png b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-text.png index b2555894..2523d485 100644 Binary files a/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-text.png and b/tests/components/main-components/update-main-components.spec.js-snapshots/win32/webkit/main-copies-component-text.png differ diff --git a/tests/composition/composition-text.spec.js b/tests/composition/composition-text.spec.js index 25ec57e3..0f1a82da 100644 --- a/tests/composition/composition-text.spec.js +++ b/tests/composition/composition-text.spec.js @@ -35,6 +35,7 @@ mainTest.describe(() => { mainTest.beforeEach(async ({ page, browserName }, testInfo) => { await testInfo.setTimeout(testInfo.timeout + 20000); const mainPage = new MainPage(page); + browserName === 'webkit' ? await mainPage.waitForViewportVisible(): null; await mainPage.createDefaultTextLayer(browserName); });