chore(cypress): adjust test
parent
13def6c436
commit
4f48b6977a
|
@ -225,15 +225,6 @@ describe('InfluxDB', () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
it('create a role, edit it, assign it to a user, and delete it', () => {
|
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(`role-${influxDB.role.name}--row`).should('not.exist')
|
||||||
cy.getByTestID('create-role--button').click({force: true})
|
cy.getByTestID('create-role--button').click({force: true})
|
||||||
cy.getByTestID('dismiss-button').click()
|
cy.getByTestID('dismiss-button').click()
|
||||||
|
@ -293,6 +284,15 @@ describe('InfluxDB', () => {
|
||||||
cy.getByTestID('read-permission').should('have.class', 'granted')
|
cy.getByTestID('read-permission').should('have.class', 'granted')
|
||||||
cy.getByTestID('write-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')
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue