diff --git a/frontend/cypress/pages/metrics/report.ts b/frontend/cypress/pages/metrics/report.ts index 390a2b2d9e..88f0d26047 100644 --- a/frontend/cypress/pages/metrics/report.ts +++ b/frontend/cypress/pages/metrics/report.ts @@ -10,8 +10,6 @@ class Report { readonly firstNotification = () => cy.contains('The file needs to be exported within 30 minutes, otherwise it will expire.') - readonly notificationButton = () => cy.get('[data-testid="NotificationIcon"]') - private readonly headerBar = () => cy.get('[data-test-id="Header"]') backToMetricsStep() { @@ -31,16 +29,10 @@ class Report { } checkNotification() { - this.notificationButton().click() cy.contains('otherwise it will expire.').should('exist') - cy.get('[data-test-id="Header"]').click() - cy.contains('otherwise it will expire.').should('not.exist') - - this.notificationButton().click() - cy.contains('otherwise it will expire.').should('exist') + cy.wait(10000) - this.notificationButton().click() cy.contains('otherwise it will expire.').should('not.exist') this.headerBar().click()