Merge pull request #5949 from influxdata/e2e/fix_current_org_test

fix(cypress): improve flaky parts of the test
pull/5955/head
Pavel Závora 2022-06-22 08:53:02 +02:00 committed by GitHub
commit 51846004c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -64,11 +64,11 @@ describe('Chronograf', () => {
cy.getByTestID(`${chronograf.user.name}--table-row`).within(() => {
cy.get('.dropdown-selected').should('be.visible')
cy.get('.dropdown-selected').realHover()
cy.get('.dropdown-selected').click()
cy.get('.dropdown-selected').clickAttached()
cy.getByTestID(`${chronograf.user.role[1]}-dropdown-item`).realHover()
cy.getByTestID(
`${chronograf.user.role[1]}-dropdown-item`
).click()
).clickAttached()
})
cy.getByTestID(`${chronograf.user.name}--table-row`).should('be.visible')
@ -76,9 +76,9 @@ describe('Chronograf', () => {
cy.getByTestID(`${chronograf.user.name}--table-row`).realHover()
cy.getByTestID(`${chronograf.user.name}--table-row`).within(() => {
cy.getByTestID('remove-user--button').should('be.visible')
cy.getByTestID('remove-user--button').click()
cy.getByTestID('remove-user--button').clickAttached()
cy.getByTestID('confirm-btn').should('be.visible')
cy.getByTestID('confirm-btn').click()
cy.getByTestID('confirm-btn').clickAttached()
})
})
})