Skip to content

Commit

Permalink
[ACS-5678] fix time issue assertions in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
azakrzewski-hy committed Oct 11, 2023
1 parent 102b622 commit d1bb997
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ test.describe('Create folder from template', () => {
dataTable = personalFiles.dataTable;
toolbar = personalFiles.acaHeader;
await toolbar.clickCreateFolderFromTemplate();
await selectFolderTemplateDialog.spinnerWaitForReload();
await dataTable.spinnerWaitForReload();
});

test.describe('Select Template dialog', () => {
Expand Down Expand Up @@ -190,7 +192,6 @@ test.describe('Create folder from template', () => {
});

test('[C325139] Next button is disabled when selecting a file', async () => {
await expect(dataTable.getRowByName(fileInRootFolder)).toBeVisible();
await expect(selectFolderTemplateDialog.actionButton).toBeDisabled();

await dataTable.getRowByName(fileInRootFolder).click();

Check failure on line 197 in e2e/playwright/actions/src/tests/create-folder-from-template.spec.ts

View workflow job for this annotation

GitHub Actions / E2e test suites: Playwright (actions, 1)

[Actions] › src/tests/create-folder-from-template.spec.ts:194:11 › Create folder from template › Personal Files page › Select Template dialog › [C325139] Next button is disabled when selecting a file

1) [Actions] › src/tests/create-folder-from-template.spec.ts:194:11 › Create folder from template › Personal Files page › Select Template dialog › [C325139] Next button is disabled when selecting a file Error: locator.click: Target closed =========================== logs =========================== waiting for locator('adf-datatable adf-datatable-row').filter({ hasText: 'file-in-root-8q08n.txt' }) ============================================================ 195 | await expect(selectFolderTemplateDialog.actionButton).toBeDisabled(); 196 | > 197 | await dataTable.getRowByName(fileInRootFolder).click(); | ^ 198 | await expect(selectFolderTemplateDialog.actionButton).toBeDisabled(); 199 | }); 200 | }); at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/actions/src/tests/create-folder-from-template.spec.ts:197:56

Check failure on line 197 in e2e/playwright/actions/src/tests/create-folder-from-template.spec.ts

View workflow job for this annotation

GitHub Actions / E2e test suites: Playwright (actions, 1)

[Actions] › src/tests/create-folder-from-template.spec.ts:194:11 › Create folder from template › Personal Files page › Select Template dialog › [C325139] Next button is disabled when selecting a file

1) [Actions] › src/tests/create-folder-from-template.spec.ts:194:11 › Create folder from template › Personal Files page › Select Template dialog › [C325139] Next button is disabled when selecting a file Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Page closed =========================== logs =========================== waiting for locator('adf-datatable adf-datatable-row').filter({ hasText: 'file-in-root-4vl0y.txt' }) ============================================================ 195 | await expect(selectFolderTemplateDialog.actionButton).toBeDisabled(); 196 | > 197 | await dataTable.getRowByName(fileInRootFolder).click(); | ^ 198 | await expect(selectFolderTemplateDialog.actionButton).toBeDisabled(); 199 | }); 200 | }); at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/actions/src/tests/create-folder-from-template.spec.ts:197:56

Check failure on line 197 in e2e/playwright/actions/src/tests/create-folder-from-template.spec.ts

View workflow job for this annotation

GitHub Actions / E2e test suites: Playwright (actions, 1)

[Actions] › src/tests/create-folder-from-template.spec.ts:194:11 › Create folder from template › Personal Files page › Select Template dialog › [C325139] Next button is disabled when selecting a file

1) [Actions] › src/tests/create-folder-from-template.spec.ts:194:11 › Create folder from template › Personal Files page › Select Template dialog › [C325139] Next button is disabled when selecting a file Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Page closed =========================== logs =========================== waiting for locator('adf-datatable adf-datatable-row').filter({ hasText: 'file-in-root-vfbtx.txt' }) ============================================================ 195 | await expect(selectFolderTemplateDialog.actionButton).toBeDisabled(); 196 | > 197 | await dataTable.getRowByName(fileInRootFolder).click(); | ^ 198 | await expect(selectFolderTemplateDialog.actionButton).toBeDisabled(); 199 | }); 200 | }); at /home/runner/work/alfresco-content-app/alfresco-content-app/e2e/playwright/actions/src/tests/create-folder-from-template.spec.ts:197:56
Expand Down

0 comments on commit d1bb997

Please sign in to comment.