chore(cypress): add assertion, return page reload

pull/5948/head
k3yi0 2022-06-29 14:22:51 +02:00
parent 32f6dcef22
commit 427dd995be
1 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,7 @@ describe('Chronograf', () => {
cy.getByTestID('confirm-new-user--button').should('be.enabled').click()
})
cy.reload()
cy.getByTestID(`${chronograf.user.name}--table-row`).should('be.visible')
cy.getByTestID(`${chronograf.user.name}--table-row`).realHover()
cy.getByTestID(`${chronograf.user.name}--table-row`).within(() => {
@ -94,6 +95,7 @@ describe('Chronograf', () => {
it('add user, edit user, and remove it', () => {
cy.getByTestID('new-user-admins--toggle')
.should('not.have.class', 'active')
.click()
.should('have.class', 'active')