mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
Manual dependencies update (#4298)
* Manual dependencies update * Manual dependencies update - e2es fix --------- Co-authored-by: datguychen <adam.swiderski@hyland.com>
This commit is contained in:
@@ -92,7 +92,7 @@ test.describe('Favorites Files', () => {
|
||||
|
||||
test('[C280482] has the correct columns', async ({ favoritePage }) => {
|
||||
const expectedColumns = ['Name', 'Location', 'Size', 'Modified', 'Modified by', 'Tags'];
|
||||
const actualColumns = await favoritePage.dataTable.getColumnHeaders();
|
||||
const actualColumns = Utils.trimArrayElements(await favoritePage.dataTable.getColumnHeaders());
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
|
@@ -95,7 +95,7 @@ test.describe('File Libraries', () => {
|
||||
|
||||
test('[C217095] has the correct columns', async ({ myLibrariesPage }) => {
|
||||
const expectedColumns = ['Name', 'Description', 'My Role', 'Visibility'];
|
||||
const actualColumns = await myLibrariesPage.dataTable.getColumnHeaders();
|
||||
const actualColumns = Utils.trimArrayElements(await myLibrariesPage.dataTable.getColumnHeaders());
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
@@ -142,7 +142,7 @@ test.describe('File Libraries', () => {
|
||||
|
||||
test('[C289893] has the correct columns', async ({ favoritesLibrariesPage }) => {
|
||||
const expectedColumns = ['Name', 'Description', 'My Role', 'Visibility'];
|
||||
const actualColumns = await favoritesLibrariesPage.dataTable.getColumnHeaders();
|
||||
const actualColumns = Utils.trimArrayElements(await favoritesLibrariesPage.dataTable.getColumnHeaders());
|
||||
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
@@ -55,7 +55,7 @@ test.describe('Personal Files', () => {
|
||||
|
||||
test('[C217142] has the correct columns', async ({ personalFiles }) => {
|
||||
const expectedColumns = ['Name', 'Size', 'Modified', 'Modified by', 'Tags'];
|
||||
const actualColumns = await personalFiles.dataTable.getColumnHeaders();
|
||||
const actualColumns = Utils.trimArrayElements(await personalFiles.dataTable.getColumnHeaders());
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
|
@@ -77,7 +77,7 @@ test.describe('Recent Files', () => {
|
||||
|
||||
test('[C213168] has the correct columns', async ({ recentFilesPage }) => {
|
||||
const expectedColumns = ['Name', 'Location', 'Size', 'Modified', 'Tags'];
|
||||
const actualColumns = await recentFilesPage.dataTable.getColumnHeaders();
|
||||
const actualColumns = Utils.trimArrayElements(await recentFilesPage.dataTable.getColumnHeaders());
|
||||
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
@@ -86,7 +86,7 @@ test.describe('Shared Files', () => {
|
||||
|
||||
test('[C213113] has the correct columns', async ({ sharedPage }) => {
|
||||
const expectedColumns = ['Name', 'Location', 'Size', 'Modified', 'Modified by', 'Shared by', 'Tags'];
|
||||
const actualColumns = await sharedPage.dataTable.getColumnHeaders();
|
||||
const actualColumns = Utils.trimArrayElements(await sharedPage.dataTable.getColumnHeaders());
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
|
@@ -54,7 +54,7 @@ test.describe('Trash admin', () => {
|
||||
test('[C213217] has the correct columns', async ({ trashPage }) => {
|
||||
await trashPage.navigate();
|
||||
const expectedColumns = ['Name', 'Location', 'Size', 'Deleted', 'Deleted by'];
|
||||
const actualColumns = await trashPage.dataTable.getColumnHeaders();
|
||||
const actualColumns = Utils.trimArrayElements(await trashPage.dataTable.getColumnHeaders());
|
||||
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
@@ -79,7 +79,7 @@ test.describe('Trash', () => {
|
||||
|
||||
test('[C280494] has the correct columns', async ({ trashPage }) => {
|
||||
const expectedColumns = ['Name', 'Location', 'Size', 'Deleted'];
|
||||
const actualColumns = await trashPage.dataTable.getColumnHeaders();
|
||||
const actualColumns = Utils.trimArrayElements(await trashPage.dataTable.getColumnHeaders());
|
||||
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
@@ -23,11 +23,12 @@
|
||||
*/
|
||||
|
||||
import { expect } from '@playwright/test';
|
||||
import { ApiClientFactory, Utils, test, TrashcanApi, NodesApi } from '@alfresco/aca-playwright-shared';
|
||||
import { ApiClientFactory, Utils, test, TrashcanApi, NodesApi, FileActionsApi } from '@alfresco/aca-playwright-shared';
|
||||
|
||||
test.describe('Search results - files and folders', () => {
|
||||
let nodesApi: NodesApi;
|
||||
let trashcanApi: TrashcanApi;
|
||||
let fileActionsApi: FileActionsApi;
|
||||
|
||||
const random = Utils.random();
|
||||
const username = `user-${random}`;
|
||||
@@ -39,6 +40,7 @@ test.describe('Search results - files and folders', () => {
|
||||
await apiClientFactory.createUser({ username });
|
||||
nodesApi = await NodesApi.initialize(username, username);
|
||||
trashcanApi = await TrashcanApi.initialize(username, username);
|
||||
fileActionsApi = await FileActionsApi.initialize(username, username);
|
||||
} catch (error) {
|
||||
console.error(`beforeAll failed: ${error}`);
|
||||
}
|
||||
@@ -66,6 +68,7 @@ test.describe('Search results - files and folders', () => {
|
||||
const fileDescription = 'file description';
|
||||
|
||||
await nodesApi.createFile(file, '-my-', fileTitle, fileDescription);
|
||||
await fileActionsApi.waitForNodes(file, { expect: 1 });
|
||||
await searchPage.searchWithin(file, 'files');
|
||||
await searchPage.dataTable.clickItemLocation(file);
|
||||
expect((await personalFiles.breadcrumb.items.textContent()).trim()).toEqual('Personal Files');
|
||||
|
@@ -171,7 +171,7 @@ test.describe('Search Results - General', () => {
|
||||
await searchPage.searchWithin(site1.name, 'libraries');
|
||||
|
||||
const expectedColumns = ['Name', 'Description', 'My Role', 'Visibility'];
|
||||
const actualColumns = await searchPage.dataTable.getColumnHeaders();
|
||||
const actualColumns = Utils.trimArrayElements(await searchPage.dataTable.getColumnHeaders());
|
||||
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
Reference in New Issue
Block a user