mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-6688] excluding & fixing failing tests (#3624)
* [ACS-6688] excluding excluded tests * [ACS-6688] Shortened notes for excluded tests * [ACS-6688] New patch of excluded tests * [ACS-6688] few more excluded + one test fixed + timeout longer for library actions * [ACS-6688] added longer timeout for github actions failing test * exclude user test fix in ACS-6699 * [ACS-6688] Next patch of fixed tests * [ACS-6688] last batch of excludes and one test fix * [ACS-6688] Trash Admin fix * [ACS-6688] .only deleted from trash admin test * [ACS-6688] Reverted the global-variables.ts file changes * [ACS-6688] small fixes * [ACS-6688] spaces changed * [ACS-6688] trash admin test excluded --------- Co-authored-by: akash.rathod@hyland.com <akash.rathod@hyland.com>
This commit is contained in:
@@ -1 +1,3 @@
|
||||
{}
|
||||
{
|
||||
"C260970": "https://alfresco.atlassian.net/browse/ACS-6688"
|
||||
}
|
||||
|
@@ -23,7 +23,7 @@
|
||||
*/
|
||||
|
||||
import { expect } from '@playwright/test';
|
||||
import { ApiClientFactory, getUserState, NodesApi, test, Utils } from '@alfresco/playwright-shared';
|
||||
import { ApiClientFactory, getUserState, NodesApi, test, Utils, LoginPage, timeouts } from '@alfresco/playwright-shared';
|
||||
|
||||
test.use({ storageState: getUserState('admin') });
|
||||
test.describe('as admin', () => {
|
||||
@@ -41,17 +41,25 @@ test.describe('as admin', () => {
|
||||
userFolderId = node.entry.id;
|
||||
});
|
||||
|
||||
test.beforeEach(async ({ personalFiles }) => {
|
||||
await personalFiles.navigate({ remoteUrl: `#/personal-files}` });
|
||||
test.beforeEach(async ({ page }) => {
|
||||
test.setTimeout(timeouts.extendedTest);
|
||||
const loginPage = new LoginPage(page);
|
||||
await loginPage.loginUser(
|
||||
{ username, password: username },
|
||||
{
|
||||
withNavigation: true,
|
||||
waitForLoading: true
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
test.afterAll(async () => {
|
||||
await apiClientFactory.nodes.deleteNode(userFolderId, { permanent: true });
|
||||
await nodesApi.deleteNodes([userFolderId], true);
|
||||
});
|
||||
|
||||
test(`[C260970] Breadcrumb on navigation to a user's home`, async ({ personalFiles }) => {
|
||||
await personalFiles.navigate({ remoteUrl: `#/personal-files/${userFolderId}` });
|
||||
personalFiles.breadcrumb.getItemByTitle(username).waitFor({ state: 'attached' });
|
||||
expect(await personalFiles.breadcrumb.getAllItems()).toEqual(['Personal Files', 'User Homes', username, userFolder]);
|
||||
await personalFiles.breadcrumb.getItemByTitle(userFolder).waitFor({ state: 'attached' });
|
||||
expect(await personalFiles.breadcrumb.getAllItems()).toEqual(['Personal Files', userFolder]);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user