Skip to content

Commit

Permalink
Disable toast check temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
ab-smith committed May 18, 2024
1 parent 9957bec commit 3ec8d86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/tests/utils/page-content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ export class PageContent extends BasePage {
return;
}
await this.importItemButton(ref, language === 'any' ? undefined : language).click();
await this.isToastVisible(`The library has been successfully loaded.+`, undefined, {
// disable the toast check for now
/*await this.isToastVisible(`The library has been successfully loaded.+`, undefined, {
timeout: 15000
});
*/
await this.tab('Loaded libraries').click();
expect(this.tab('Loaded libraries').getAttribute('aria-selected')).toBeTruthy();
expect(this.getRow(ref)).toBeVisible();

Check failure on line 95 in frontend/tests/utils/page-content.ts

View workflow job for this annotation

GitHub Actions / functional-tests (3.11, chromium)

[chromium] › functional/detailed/common.test.ts:70:4 › Tests on risk assessments item › Tests on risk assessments item details › Risk assessments item details are showing properly

1) [chromium] › functional/detailed/common.test.ts:70:4 › Tests on risk assessments item › Tests on risk assessments item details › Risk assessments item details are showing properly Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toBeVisible() Locator: getByRole('row', { name: 'Critical risk matrix 5x5' }).first() Expected: visible Received: hidden Call log: - expect.toBeVisible with timeout 10000ms - waiting for getByRole('row', { name: 'Critical risk matrix 5x5' }).first() at utils/page-content.ts:95 93 | await this.tab('Loaded libraries').click(); 94 | expect(this.tab('Loaded libraries').getAttribute('aria-selected')).toBeTruthy(); > 95 | expect(this.getRow(ref)).toBeVisible(); | ^ 96 | } 97 | 98 | async viewItemDetail(value?: string) { at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:95:28) at PageContent.createItem (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:44:4) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/detailed/common.test.ts:48:5

Check failure on line 95 in frontend/tests/utils/page-content.ts

View workflow job for this annotation

GitHub Actions / functional-tests (3.11, chromium)

[chromium] › functional/detailed/common.test.ts:70:4 › Tests on audits item › Tests on audits item details › Audits item details are showing properly

2) [chromium] › functional/detailed/common.test.ts:70:4 › Tests on audits item › Tests on audits item details › Audits item details are showing properly Error: Timed out 10000ms waiting for expect(locator).toBeVisible() Locator: getByRole('row', { name: 'NIST-CSF-1.1' }).first() Expected: visible Received: hidden Call log: - expect.toBeVisible with timeout 10000ms - waiting for getByRole('row', { name: 'NIST-CSF-1.1' }).first() at utils/page-content.ts:95 93 | await this.tab('Loaded libraries').click(); 94 | expect(this.tab('Loaded libraries').getAttribute('aria-selected')).toBeTruthy(); > 95 | expect(this.getRow(ref)).toBeVisible(); | ^ 96 | } 97 | 98 | async viewItemDetail(value?: string) { at PageContent.importLibrary (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:95:28) at PageContent.createItem (/home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/utils/page-content.ts:44:4) at /home/runner/work/ciso-assistant-community/ciso-assistant-community/frontend/tests/functional/detailed/common.test.ts:48:5
Expand Down

0 comments on commit 3ec8d86

Please sign in to comment.