Skip to content

Commit

Permalink
[ACS-5996] [E2E] fixed C286473 e2e test (#4191)
Browse files Browse the repository at this point in the history
  • Loading branch information
datguychen authored Oct 23, 2024
1 parent 8773a02 commit e97fd97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions e2e/playwright/authentication/exclude.tests.json
Original file line number Diff line number Diff line change
@@ -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"
}
6 changes: 3 additions & 3 deletions e2e/playwright/authentication/src/tests/general.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
});
});

0 comments on commit e97fd97

Please sign in to comment.