diff --git a/.github/workflows/cron-e2e.yml b/.github/workflows/cron-e2e.yml index 271d40a91..c2ed6f8d6 100644 --- a/.github/workflows/cron-e2e.yml +++ b/.github/workflows/cron-e2e.yml @@ -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: diff --git a/e2e/playwright/authentication/exclude.tests.json b/e2e/playwright/authentication/exclude.tests.json index c47fd7820..008398bca 100644 --- a/e2e/playwright/authentication/exclude.tests.json +++ b/e2e/playwright/authentication/exclude.tests.json @@ -1,8 +1,5 @@ { "all": { "XAT-4370": "https://hyland.atlassian.net/browse/ACS-5479" - }, - "firefox": { - "XAT-17773": "https://hyland.atlassian.net/browse/ACS-10917" } } diff --git a/e2e/playwright/folder-rules/exclude.tests.json b/e2e/playwright/folder-rules/exclude.tests.json index ff5bb6889..7507194dc 100644 --- a/e2e/playwright/folder-rules/exclude.tests.json +++ b/e2e/playwright/folder-rules/exclude.tests.json @@ -1,6 +1,3 @@ { - "all": {}, - "webkit": { - "XAT-888": "https://hyland.atlassian.net/browse/ACS-10917" - } + "all": {} } diff --git a/e2e/playwright/list-views/exclude.tests.json b/e2e/playwright/list-views/exclude.tests.json index 6aa938745..6e4e7aff0 100644 --- a/e2e/playwright/list-views/exclude.tests.json +++ b/e2e/playwright/list-views/exclude.tests.json @@ -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" } } diff --git a/e2e/playwright/list-views/src/tests/personal-files.e2e.ts b/e2e/playwright/list-views/src/tests/personal-files.e2e.ts index b3d4fc64b..e0f00fea6 100644 --- a/e2e/playwright/list-views/src/tests/personal-files.e2e.ts +++ b/e2e/playwright/list-views/src/tests/personal-files.e2e.ts @@ -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 from any folder location', async ({ personalFiles }) => { diff --git a/e2e/playwright/list-views/src/tests/recent-files.e2e.ts b/e2e/playwright/list-views/src/tests/recent-files.e2e.ts index fc9c46992..8ce27df17 100755 --- a/e2e/playwright/list-views/src/tests/recent-files.e2e.ts +++ b/e2e/playwright/list-views/src/tests/recent-files.e2e.ts @@ -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'); }); diff --git a/e2e/playwright/list-views/src/tests/shared-files.e2e.ts b/e2e/playwright/list-views/src/tests/shared-files.e2e.ts index 8fe1c01c0..8afd566ab 100644 --- a/e2e/playwright/list-views/src/tests/shared-files.e2e.ts +++ b/e2e/playwright/list-views/src/tests/shared-files.e2e.ts @@ -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'); }); diff --git a/e2e/playwright/list-views/src/tests/sort-list.e2e.ts b/e2e/playwright/list-views/src/tests/sort-list.e2e.ts index b72951642..ed461b824 100644 --- a/e2e/playwright/list-views/src/tests/sort-list.e2e.ts +++ b/e2e/playwright/list-views/src/tests/sort-list.e2e.ts @@ -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); diff --git a/e2e/playwright/list-views/src/tests/trash.e2e.ts b/e2e/playwright/list-views/src/tests/trash.e2e.ts index ac54e57ce..0ebdbe2b3 100755 --- a/e2e/playwright/list-views/src/tests/trash.e2e.ts +++ b/e2e/playwright/list-views/src/tests/trash.e2e.ts @@ -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'); }); diff --git a/e2e/playwright/navigation/exclude.tests.json b/e2e/playwright/navigation/exclude.tests.json index a15d08b8f..7507194dc 100644 --- a/e2e/playwright/navigation/exclude.tests.json +++ b/e2e/playwright/navigation/exclude.tests.json @@ -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": {} } diff --git a/e2e/playwright/viewer-actions/exclude.tests.json b/e2e/playwright/viewer-actions/exclude.tests.json index 3395da8bb..b9f378aba 100644 --- a/e2e/playwright/viewer-actions/exclude.tests.json +++ b/e2e/playwright/viewer-actions/exclude.tests.json @@ -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": {} } diff --git a/e2e/playwright/viewer-actions/src/tests/viewer-action.e2e.ts b/e2e/playwright/viewer-actions/src/tests/viewer-action.e2e.ts index 3835b72e1..1dc539f10 100644 --- a/e2e/playwright/viewer-actions/src/tests/viewer-action.e2e.ts +++ b/e2e/playwright/viewer-actions/src/tests/viewer-action.e2e.ts @@ -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 }) => { diff --git a/e2e/playwright/viewer/exclude.tests.json b/e2e/playwright/viewer/exclude.tests.json index 9b8393224..964ee9388 100644 --- a/e2e/playwright/viewer/exclude.tests.json +++ b/e2e/playwright/viewer/exclude.tests.json @@ -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" } } diff --git a/e2e/playwright/viewer/src/tests/viewer-version-actions.e2e.ts b/e2e/playwright/viewer/src/tests/viewer-version-actions.e2e.ts index bab9160e8..fe6cf9786 100644 --- a/e2e/playwright/viewer/src/tests/viewer-version-actions.e2e.ts +++ b/e2e/playwright/viewer/src/tests/viewer-version-actions.e2e.ts @@ -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); }); }); }); diff --git a/projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts b/projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts index d464bfc6f..3edb259d0 100644 --- a/projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts +++ b/projects/aca-playwright-shared/src/page-objects/components/dataTable/data-table.component.ts @@ -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 { - return this.sortedColumnHeader.innerText(); + return (await this.sortedColumnHeader.textContent())?.trim() ?? ''; } private getItemLocationEl(name: string): Locator {