mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[ACS-12069] Stabilize multibrowser test runs pt2 -> tests include + small fixes + multibrowser workflow manual trigger added (#5246)
* [ACS-12069] tests include + small fixes * [ACS-12069] XAT-4526 fixes * [ACS12069] changed toBe to toContain for getSortedColumnHeaderText usage * [ACS-12069] XAT-4523 improvement * [ACS-12069] sort list fixes
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
name: "Cron multibrowser E2E runs"
|
||||
run-name: ${{ github.event_name == 'workflow_dispatch' && 'Manual multibrowser E2E run' || 'Cron multibrowser E2E run' }}
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 6 * * 1-5' #At 06:00 on every day-of-week from Monday through Friday.
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
chrome:
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
{
|
||||
"all": {
|
||||
"XAT-4370": "https://hyland.atlassian.net/browse/ACS-5479"
|
||||
},
|
||||
"firefox": {
|
||||
"XAT-17773": "https://hyland.atlassian.net/browse/ACS-10917"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
{
|
||||
"all": {},
|
||||
"webkit": {
|
||||
"XAT-888": "https://hyland.atlassian.net/browse/ACS-10917"
|
||||
}
|
||||
"all": {}
|
||||
}
|
||||
|
||||
@@ -1,28 +1,5 @@
|
||||
{
|
||||
"all": {
|
||||
"XAT-4525": "https://hyland.atlassian.net/browse/ACS-9741"
|
||||
},
|
||||
"firefox": {
|
||||
"XAT-4455": "https://hyland.atlassian.net/browse/ACS-10917"
|
||||
},
|
||||
"webkit": {
|
||||
"XAT-4459": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-4460": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-4461": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-4462": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-4452": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-4464": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-4441": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-5612": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-4448": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-4449": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-4450": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-4437": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-4438": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-4439": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-4526": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-4471": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-4470": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-4472": "https://hyland.atlassian.net/browse/ACS-10917"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ test.describe('Personal Files', () => {
|
||||
|
||||
test('[XAT-4415] Personal Files - Default sort order', async ({ personalFiles }) => {
|
||||
await Utils.reloadPageIfDatatableEmpty(personalFiles);
|
||||
expect(await personalFiles.dataTable.getSortedColumnHeaderText()).toBe('Name');
|
||||
expect(await personalFiles.dataTable.getSortedColumnHeaderText()).toContain('Name');
|
||||
});
|
||||
|
||||
test('[XAT-4411] User is redirected to Home page on selecting <Personal Files> from any folder location', async ({ personalFiles }) => {
|
||||
|
||||
@@ -90,7 +90,7 @@ test.describe('Recent Files', () => {
|
||||
});
|
||||
|
||||
test('[XAT-4444] Default sort order is by Modified, showing most recently edited files first', async ({ recentFilesPage }) => {
|
||||
expect(await recentFilesPage.dataTable.getSortedColumnHeaderText()).toBe('Modified');
|
||||
expect(await recentFilesPage.dataTable.getSortedColumnHeaderText()).toContain('Modified');
|
||||
expect(await recentFilesPage.dataTable.getSortingOrder()).toBe('desc');
|
||||
});
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ test.describe('Shared Files', () => {
|
||||
});
|
||||
|
||||
test('[XAT-4432] Default sort order is by Modified date, showing most recently edited files first', async ({ sharedPage }) => {
|
||||
expect(await sharedPage.dataTable.getSortedColumnHeaderText()).toBe('Modified');
|
||||
expect(await sharedPage.dataTable.getSortedColumnHeaderText()).toContain('Modified');
|
||||
expect(await sharedPage.dataTable.getSortingOrder()).toBe('desc');
|
||||
});
|
||||
|
||||
|
||||
@@ -186,7 +186,7 @@ test.describe('Remember sorting', () => {
|
||||
};
|
||||
|
||||
let currentPersonalFilesSortDataPage2 = await getSortState(personalFiles);
|
||||
expect(currentPersonalFilesSortDataPage2).toEqual(expectedPersonalFilesSortDataPage2);
|
||||
expect(currentPersonalFilesSortDataPage2).toMatchObject(expectedPersonalFilesSortDataPage2);
|
||||
|
||||
await personalFiles.dataTable.sortBy('Name', 'desc');
|
||||
await personalFiles.dataTable.spinnerWaitForReload();
|
||||
@@ -197,7 +197,7 @@ test.describe('Remember sorting', () => {
|
||||
};
|
||||
|
||||
currentPersonalFilesSortDataPage2 = await getSortState(personalFiles);
|
||||
expect(expectedPersonalFilesSortDataPage2).toEqual(currentPersonalFilesSortDataPage2);
|
||||
expect(currentPersonalFilesSortDataPage2).toMatchObject(expectedPersonalFilesSortDataPage2);
|
||||
});
|
||||
|
||||
test.describe('Folder actions', () => {
|
||||
@@ -219,7 +219,8 @@ test.describe('Remember sorting', () => {
|
||||
|
||||
await personalFiles.selectCreateFolder();
|
||||
await personalFiles.folderDialog.createNewFolderDialog(uiCreatedFolder);
|
||||
await personalFiles.dataTable.isItemPresent(uiCreatedFolder);
|
||||
await personalFiles.dataTable.getRowByName(uiCreatedFolder).waitFor({ timeout: timeouts.medium });
|
||||
await personalFiles.dataTable.spinnerWaitForReload();
|
||||
|
||||
const actualSortData = await getSortState(personalFiles);
|
||||
expect(actualSortData).toEqual(expectedSortData);
|
||||
|
||||
@@ -85,7 +85,7 @@ test.describe('Trash', () => {
|
||||
});
|
||||
|
||||
test(`[XAT-4469] Default sort order is on 'Deleted' column with most recent first`, async ({ trashPage }) => {
|
||||
expect(await trashPage.dataTable.getSortedColumnHeaderText()).toBe('Deleted');
|
||||
expect(await trashPage.dataTable.getSortedColumnHeaderText()).toContain('Deleted');
|
||||
expect(await trashPage.dataTable.getSortingOrder()).toBe('desc');
|
||||
});
|
||||
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
{
|
||||
"all": {},
|
||||
"webkit": {
|
||||
"XAT-4400": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-4388": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-4391": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-4396": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-4399": "https://hyland.atlassian.net/browse/ACS-10917"
|
||||
}
|
||||
"all": {}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
{
|
||||
"all": {},
|
||||
"firefox": {
|
||||
"XAT-5417": "https://hyland.atlassian.net/browse/ACS-10917"
|
||||
},
|
||||
"webkit": {
|
||||
"XAT-5417": "https://hyland.atlassian.net/browse/ACS-10917"
|
||||
}
|
||||
"all": {}
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ test.describe('viewer action file', () => {
|
||||
const downloadPromise = personalFiles.page.waitForEvent('download');
|
||||
await personalFiles.acaHeader.downloadButtonViewer.click();
|
||||
const download = await downloadPromise;
|
||||
expect(download.suggestedFilename()).toBe(randomDocxName);
|
||||
expect(download.suggestedFilename()).toContain(randomDocxName);
|
||||
});
|
||||
|
||||
test('[XAT-5415] Full screen action', async ({ personalFiles }) => {
|
||||
|
||||
@@ -1,35 +1,5 @@
|
||||
{
|
||||
"all": {
|
||||
"XAT-19377": "https://hyland.atlassian.net/browse/ACS-11868"
|
||||
},
|
||||
"firefox": {
|
||||
"XAT-17177": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-17178": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-17179": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-17180": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-17183": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-17184": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-17185": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-5485": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-5486": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-5498": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-5504": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-5507": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-5510": "https://hyland.atlassian.net/browse/ACS-10917"
|
||||
},
|
||||
"webkit": {
|
||||
"XAT-17177": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-17178": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-17179": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-17180": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-17183": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-17184": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-17185": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-5485": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-5486": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-5498": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-5504": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-5507": "https://hyland.atlassian.net/browse/ACS-10917",
|
||||
"XAT-5510": "https://hyland.atlassian.net/browse/ACS-10917"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ test.describe('Version actions', () => {
|
||||
|
||||
test('[XAT-5498] Should be possible to download a previous document version - Personal Files', async ({ personalFiles }) => {
|
||||
const [download] = await Promise.all([personalFiles.page.waitForEvent('download'), await personalFiles.viewer.downloadButton.click()]);
|
||||
expect(download.suggestedFilename()).toBe(filenameBeforeUpdate);
|
||||
expect(download.suggestedFilename()).toContain(filenameBeforeUpdate);
|
||||
});
|
||||
|
||||
test('[XAT-19377] Can view previous version of a document after a viewer is opened from Manage Versions dialog', async ({ personalFiles }) => {
|
||||
@@ -179,7 +179,7 @@ test.describe('Version actions', () => {
|
||||
|
||||
test('[XAT-5504] Should be possible to download a previous document version - Favorites', async ({ favoritePage }) => {
|
||||
const [download] = await Promise.all([favoritePage.page.waitForEvent('download'), await favoritePage.viewer.downloadButton.click()]);
|
||||
expect(download.suggestedFilename()).toBe(filenameBeforeUpdate);
|
||||
expect(download.suggestedFilename()).toContain(filenameBeforeUpdate);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -204,7 +204,7 @@ test.describe('Version actions', () => {
|
||||
|
||||
test('[XAT-5507] Should be possible to download a previous document version - Shared Files', async ({ sharedPage }) => {
|
||||
const [download] = await Promise.all([sharedPage.page.waitForEvent('download'), await sharedPage.viewer.downloadButton.click()]);
|
||||
expect(download.suggestedFilename()).toBe(filenameBeforeUpdate);
|
||||
expect(download.suggestedFilename()).toContain(filenameBeforeUpdate);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -229,7 +229,7 @@ test.describe('Version actions', () => {
|
||||
|
||||
test('[XAT-5510] Should be possible to download a previous document version - Search Results', async ({ searchPage }) => {
|
||||
const [download] = await Promise.all([searchPage.page.waitForEvent('download'), await searchPage.viewer.downloadButton.click()]);
|
||||
expect(download.suggestedFilename()).toBe(filenameBeforeUpdate);
|
||||
expect(download.suggestedFilename()).toContain(filenameBeforeUpdate);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
+2
-1
@@ -110,6 +110,7 @@ export class DataTableComponent extends BaseComponent {
|
||||
if (sortColumn !== label) {
|
||||
await this.getColumnHeaderByName(label).hover();
|
||||
await this.getColumnHeaderByName(label).click({ force: true });
|
||||
await this.spinnerWaitForReload();
|
||||
sortOrder = await this.getSortingOrder();
|
||||
}
|
||||
if (sortOrder !== order) {
|
||||
@@ -200,7 +201,7 @@ export class DataTableComponent extends BaseComponent {
|
||||
}
|
||||
|
||||
async getSortedColumnHeaderText(): Promise<string> {
|
||||
return this.sortedColumnHeader.innerText();
|
||||
return (await this.sortedColumnHeader.textContent())?.trim() ?? '';
|
||||
}
|
||||
|
||||
private getItemLocationEl(name: string): Locator {
|
||||
|
||||
Reference in New Issue
Block a user