chore(ui): adjust attribute value, adjust test

pull/5948/head
k3yi0 2022-06-21 14:09:42 +02:00
parent c7f7e0af5b
commit 3d5e0d6670
2 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ describe('Chronograf', () => {
}) })
it('add user, edit user, and remove it', () => { it('add user, edit user, and remove it', () => {
cy.getByTestID('new-user-Admins--toggle') cy.getByTestID('new-user-admins--toggle')
.click() .click()
.should('have.class', 'active') .should('have.class', 'active')
cy.getByTestID('add-user--button').click() cy.getByTestID('add-user--button').click()
@ -114,7 +114,7 @@ describe('Chronograf', () => {
cy.getByTestID('confirm-new-user--button').click() cy.getByTestID('confirm-new-user--button').click()
}) })
cy.getByTestID('new-user-Admins--toggle') cy.getByTestID('new-user-admins--toggle')
.click() .click()
.should('not.have.class', 'active') .should('not.have.class', 'active')

View File

@ -49,7 +49,7 @@ class AllUsersTableHeader extends Component<Props> {
size={ComponentSize.Small} size={ComponentSize.Small}
active={superAdminNewUsers} active={superAdminNewUsers}
onChange={this.handleToggleClick} onChange={this.handleToggleClick}
dataTest="new-user-Admins--toggle" dataTest="new-user-admins--toggle"
/> />
<span>All new users are SuperAdmins</span> <span>All new users are SuperAdmins</span>
</div> </div>