[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:
Adam Świderski
2024-02-02 13:22:32 +01:00
committed by GitHub
parent 4e19bbeabd
commit c968c1cb7f
17 changed files with 173 additions and 32 deletions

View File

@@ -1 +1,22 @@
{}
{
"C213173": "https://alfresco.atlassian.net/browse/ACS-6688",
"C213178": "https://alfresco.atlassian.net/browse/ACS-6688",
"C213668": "https://alfresco.atlassian.net/browse/ACS-6688",
"C297653": "https://alfresco.atlassian.net/browse/ACS-6688",
"C297659": "https://alfresco.atlassian.net/browse/ACS-6688",
"C213168": "https://alfresco.atlassian.net/browse/ACS-6688",
"C213171": "https://alfresco.atlassian.net/browse/ACS-6688",
"C213174": "https://alfresco.atlassian.net/browse/ACS-6688",
"C213176": "https://alfresco.atlassian.net/browse/ACS-6688",
"C280486": "https://alfresco.atlassian.net/browse/ACS-6688",
"C280487": "https://alfresco.atlassian.net/browse/ACS-6688",
"C213116": "https://alfresco.atlassian.net/browse/ACS-6688",
"C213113": "https://alfresco.atlassian.net/browse/ACS-6688",
"C213115": "https://alfresco.atlassian.net/browse/ACS-6688",
"C213117": "https://alfresco.atlassian.net/browse/ACS-6688",
"C213118": "https://alfresco.atlassian.net/browse/ACS-6688",
"C213666": "https://alfresco.atlassian.net/browse/ACS-6688",
"C280490": "https://alfresco.atlassian.net/browse/ACS-6688",
"C280491": "https://alfresco.atlassian.net/browse/ACS-6688",
"C213217": "https://alfresco.atlassian.net/browse/ACS-6710"
}

View File

@@ -115,6 +115,7 @@ test.describe('Favorites Files', () => {
expect(await favoritePage.dataTable.getItemLocationText(favFolderName)).toEqual('Personal Files');
expect(await favoritePage.dataTable.getItemLocationTooltip(fileName2)).toEqual(`Personal Files/${parentFolder}`);
expect(await favoritePage.dataTable.getItemLocationTooltip(favFolderName)).toEqual('Personal Files');
await favoritePage.page.waitForTimeout(2500);
expect(await favoritePage.dataTable.getItemLocationText(fileName1)).toEqual(siteName);
expect(await favoritePage.dataTable.getItemLocationTooltip(fileName1)).toContain(`${siteName}`);
});

View File

@@ -229,6 +229,7 @@ test.describe('Remember sorting', () => {
});
test.describe('User Tests', () => {
test.describe.configure({ mode: 'serial' });
test('[C261137] Size sort order is retained when user logs out and logs back in', async ({ personalFiles, loginPage }) => {
await personalFiles.dataTable.sortBy('Name', 'desc');
await personalFiles.dataTable.spinnerWaitForReload();
@@ -238,6 +239,7 @@ test.describe('Remember sorting', () => {
await loginPage.logoutUser();
await FileActionsApi.initialize(user1, user1);
await loginPage.loginUser({ username: user1, password: user1 }, { withNavigation: true, waitForLoading: true });
await loginPage.verifyUserLogin();
const actualSortData = await getSortState(personalFiles);
expect(actualSortData).toEqual(expectedSortData);
@@ -250,13 +252,8 @@ test.describe('Remember sorting', () => {
await loginPage.logoutUser();
await FileActionsApi.initialize(user2, user2);
await loginPage.loginUser(
{ username: user2, password: user2 },
{
withNavigation: true,
waitForLoading: true
}
);
await loginPage.loginUser({ username: user2, password: user2 }, { withNavigation: true, waitForLoading: true });
await loginPage.verifyUserLogin();
const actualSortData = await getSortState(personalFiles);
expect(actualSortData).not.toEqual(expectedSortData);

View File

@@ -23,7 +23,7 @@
*/
import { expect } from '@playwright/test';
import { ApiClientFactory, NodesApi, Utils, getUserState, test } from '@alfresco/playwright-shared';
import { ApiClientFactory, NodesApi, Utils, getUserState, test, LoginPage, users } from '@alfresco/playwright-shared';
test.use({ storageState: getUserState('admin') });
test.describe('Trash admin', () => {
@@ -51,6 +51,17 @@ test.describe('Trash admin', () => {
}
});
test.beforeEach(async ({ page }) => {
const loginPage = new LoginPage(page);
await loginPage.loginUser(
{ username: users.admin.username, password: users.admin.password },
{
withNavigation: true,
waitForLoading: true
}
);
});
test.describe('as admin', () => {
test('[C213217] has the correct columns', async ({ trashPage }) => {
await trashPage.navigate();