From e97fd97e7cf8ccf2a57c10cd66aab3d744eb39a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=9Awiderski?= Date: Wed, 23 Oct 2024 15:23:43 +0200 Subject: [PATCH] [ACS-5996] [E2E] fixed C286473 e2e test (#4191) --- e2e/playwright/authentication/exclude.tests.json | 3 +-- e2e/playwright/authentication/src/tests/general.e2e.ts | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/e2e/playwright/authentication/exclude.tests.json b/e2e/playwright/authentication/exclude.tests.json index cf08a95374..5039edb122 100644 --- a/e2e/playwright/authentication/exclude.tests.json +++ b/e2e/playwright/authentication/exclude.tests.json @@ -1,4 +1,3 @@ { - "C213097" : "https://alfresco.atlassian.net/browse/ACS-5479", - "C286473" : "https://alfresco.atlassian.net/browse/ACS-5996" + "C213097" : "https://hyland.atlassian.net/browse/ACS-5479" } diff --git a/e2e/playwright/authentication/src/tests/general.e2e.ts b/e2e/playwright/authentication/src/tests/general.e2e.ts index 072fe375b4..2505b254cb 100644 --- a/e2e/playwright/authentication/src/tests/general.e2e.ts +++ b/e2e/playwright/authentication/src/tests/general.e2e.ts @@ -23,7 +23,7 @@ */ import { expect } from '@playwright/test'; -import { ApiClientFactory, Utils, test } from '@alfresco/aca-playwright-shared'; +import { ApiClientFactory, Utils, test, timeouts } from '@alfresco/aca-playwright-shared'; test.describe('Create folders', () => { const apiClientFactory = new ApiClientFactory(); @@ -54,8 +54,8 @@ test.describe('Create folders', () => { await personalFiles.page.keyboard.press('Escape'); await personalFiles.snackBar.message.waitFor({ state: 'attached' }); await expect(personalFiles.snackBar.message).toHaveText('The action was unsuccessful. Try again or contact your IT Team.'); + await personalFiles.page.reload({ waitUntil: 'networkidle' }); + await personalFiles.acaHeader.createButton.waitFor({ timeout: timeouts.medium, state: 'hidden' }); expect(await personalFiles.page.title()).toContain('Sign in'); - await personalFiles.snackBar.message.waitFor({ state: 'detached' }); - await expect(personalFiles.snackBar.message, 'dialog should not be visible').toBeHidden(); }); });