chore(cypress): adjust test
parent
96ff02b1e9
commit
285ca079d9
|
@ -88,7 +88,7 @@ describe('Use Admin tab', () => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('All Users', () => {
|
describe.only('All Users', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.visit(url + '/all-users')
|
cy.visit(url + '/all-users')
|
||||||
})
|
})
|
||||||
|
@ -134,51 +134,38 @@ describe('Use Admin tab', () => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
cy.getByTestID(`${chronograf.user.name}--table-row`)
|
cy.getByTestID(`${chronograf.user.name}--table-row`).realHover()
|
||||||
.realHover()
|
|
||||||
.then(() => {
|
|
||||||
cy.getByTestID(`${chronograf.user.name}--table-row`).within(() => {
|
|
||||||
cy.getByTestID(`${chronograf.user.orgs[0]}-tag--item`).should(
|
|
||||||
'exist'
|
|
||||||
)
|
|
||||||
|
|
||||||
cy.getByTestID('delete-tag--button')
|
cy.getByTestID(`${chronograf.user.name}--table-row`).within(() => {
|
||||||
.click()
|
cy.getByTestID(`${chronograf.user.orgs[0]}-tag--item`).should('exist')
|
||||||
.within(() => {
|
cy.getByTestID('delete-tag--button').clickAttached()
|
||||||
cy.getByTestID('confirm-btn').click()
|
cy.getByTestID('delete-tag--button').within(() => {
|
||||||
})
|
cy.getByTestID('confirm-btn').click()
|
||||||
|
|
||||||
cy.getByTestID(`${chronograf.user.orgs[0]}-tag--item`).should(
|
|
||||||
'not.exist'
|
|
||||||
)
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
|
||||||
cy.getByTestID(`${chronograf.user.name}--table-row`)
|
cy.getByTestID(`${chronograf.user.orgs[0]}-tag--item`).should(
|
||||||
.realHover()
|
'not.exist'
|
||||||
.then(() => {
|
)
|
||||||
cy.getByTestID(`${chronograf.user.name}--table-row`).within(() => {
|
})
|
||||||
cy.get('.tags-add')
|
|
||||||
.click()
|
|
||||||
.within(() => {
|
|
||||||
cy.get('.tags-add--menu-item')
|
|
||||||
.contains(chronograf.user.orgs[0])
|
|
||||||
.click()
|
|
||||||
})
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
cy.getByTestID(`${chronograf.user.name}--table-row`)
|
cy.getByTestID(`${chronograf.user.name}--table-row`).realHover()
|
||||||
.realHover()
|
cy.getByTestID(`${chronograf.user.name}--table-row`).within(() => {
|
||||||
.then(() => {
|
cy.get('.tags-add')
|
||||||
cy.getByTestID(`${chronograf.user.name}--table-row`).within(() => {
|
.click()
|
||||||
cy.getByTestID('delete-user--button')
|
.within(() => {
|
||||||
.click()
|
cy.get('.tags-add--menu-item')
|
||||||
.within(() => {
|
.contains(chronograf.user.orgs[0])
|
||||||
cy.getByTestID('confirm-btn').click()
|
.clickAttached()
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
cy.getByTestID(`${chronograf.user.name}--table-row`).realHover()
|
||||||
|
cy.getByTestID(`${chronograf.user.name}--table-row`).within(() => {
|
||||||
|
cy.getByTestID('delete-user--button').clickAttached()
|
||||||
|
cy.getByTestID('delete-user--button').within(() => {
|
||||||
|
cy.getByTestID('confirm-btn').clickAttached()
|
||||||
})
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue