Skip to content

Commit

Permalink
webkit test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chalapkoStanislav committed Aug 27, 2024
1 parent 0226a16 commit e8c181f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pages/dashboard/dashboard-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
);
Expand Down
2 changes: 1 addition & 1 deletion pages/workspace/main-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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],
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions tests/composition/composition-text.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down

0 comments on commit e8c181f

Please sign in to comment.