diff --git a/ui/cypress/fixtures/chronograf.json b/ui/cypress/fixtures/chronograf.json index cdbf87c5a..0b7b41f07 100644 --- a/ui/cypress/fixtures/chronograf.json +++ b/ui/cypress/fixtures/chronograf.json @@ -3,7 +3,7 @@ "name": "Smiley", "role": ["reader", "viewer"], "oauthProvider": "oauth-mock", - "oauth-scheme": "oauth", + "oauth-schema": "oauth", "orgs": ["Default"] } } \ No newline at end of file diff --git a/ui/cypress/integration/admin_chronograf.test.ts b/ui/cypress/integration/admin_chronograf.test.ts index 18cc16b07..ab70ae852 100644 --- a/ui/cypress/integration/admin_chronograf.test.ts +++ b/ui/cypress/integration/admin_chronograf.test.ts @@ -90,12 +90,14 @@ describe('Chronograf', () => { cy.getByTestID('new-user-admins--toggle') .click() .should('have.class', 'active') + cy.getByTestID('add-user--button').click() cy.getByTestID('new-user--table-row') .should('exist') .within(() => { cy.getByTestID('cancel-new-user--button').click() }) + cy.getByTestID('add-user--button').click() cy.getByTestID('new-user--table-row') .should('exist') @@ -105,12 +107,15 @@ describe('Chronograf', () => { cy.getByTestID('dropdown-ul') .contains(chronograf.user.orgs[0]) .click() + cy.getByTestID( `dropdown-selected--${chronograf.user.orgs[0]}` ).should('exist') + cy.getByTestID('oauth-provider--input').type( chronograf.user.oauthProvider ) + cy.getByTestID('confirm-new-user--button').click() }) @@ -128,14 +133,14 @@ describe('Chronograf', () => { }) cy.getByTestID(`${chronograf.user.name}--table-row`).realHover() - cy.getByTestID(`${chronograf.user.name}--table-row`).within(() => { cy.get(`.input-tag--item`) .contains(chronograf.user.orgs[0]) .should('exist') + cy.getByTestID('delete-tag--button').clickAttached() cy.getByTestID('delete-tag--button').within(() => { - cy.getByTestID('confirm-btn').click() + cy.getByTestID('confirm-btn').clickAttached() }) cy.get(`.input-tag--item`) diff --git a/ui/src/admin/components/chronograf/UsersTableRowNew.js b/ui/src/admin/components/chronograf/UsersTableRowNew.js index f48a459a4..4dfcac98e 100644 --- a/ui/src/admin/components/chronograf/UsersTableRowNew.js +++ b/ui/src/admin/components/chronograf/UsersTableRowNew.js @@ -125,7 +125,7 @@ class UsersTableRowNew extends Component { disabled={true} placeholder="OAuth Scheme..." value={scheme} - data-test="oauth-scheme--input" + data-test="oauth-schema--input" />