chore(cypress): adjust test

pull/5939/head
k3yi0 2022-06-20 12:00:00 +02:00
parent 13def6c436
commit 4f48b6977a
1 changed files with 9 additions and 9 deletions

View File

@ -225,15 +225,6 @@ describe('InfluxDB', () => {
})
it('create a role, edit it, assign it to a user, and delete it', () => {
cy.getByTestID('admin-table--head').within(() => {
cy.get('th').contains('Users').should('exist')
})
cy.getByTestID('hide-users--toggle').click()
cy.getByTestID('admin-table--head').within(() => {
cy.get('th').contains('Users').should('not.exist')
})
cy.getByTestID(`role-${influxDB.role.name}--row`).should('not.exist')
cy.getByTestID('create-role--button').click({force: true})
cy.getByTestID('dismiss-button').click()
@ -293,6 +284,15 @@ describe('InfluxDB', () => {
cy.getByTestID('read-permission').should('have.class', 'granted')
cy.getByTestID('write-permission').should('have.class', 'granted')
})
cy.getByTestID('admin-table--head').within(() => {
cy.get('th').contains('Users').should('exist')
})
cy.getByTestID('hide-users--toggle').click()
cy.getByTestID('admin-table--head').within(() => {
cy.get('th').contains('Users').should('not.exist')
})
})
})
})