Skip to content

Commit

Permalink
ADM-651:[frontend][backend] Fix the issue of e2e. (#792)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxx-Ivy authored Dec 6, 2023
2 parents f00b297 + 440b03e commit a29e159
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions frontend/cypress/pages/metrics/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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()
Expand Down

0 comments on commit a29e159

Please sign in to comment.