Skip to content

Commit

Permalink
Fix permissions test
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <[email protected]>
  • Loading branch information
derek-ho committed Apr 17, 2024
1 parent 65b3f26 commit 3d2931d
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,14 @@ describe('Multi-datasources enabled', () => {
cy.get('[id="create-from-blank"]').click();
cy.get('[data-test-subj="name-text"]')

Check warning on line 173 in test/cypress/e2e/multi-datasources/multi_datasources_enabled.spec.js

View workflow job for this annotation

GitHub Actions / Run unit tests (macos-latest)

Do not use force on click and type calls

Check warning on line 173 in test/cypress/e2e/multi-datasources/multi_datasources_enabled.spec.js

View workflow job for this annotation

GitHub Actions / Run unit tests (windows-latest)

Do not use force on click and type calls

Check warning on line 173 in test/cypress/e2e/multi-datasources/multi_datasources_enabled.spec.js

View workflow job for this annotation

GitHub Actions / Run unit tests (ubuntu-latest)

Do not use force on click and type calls
.focus()
.type('test_permission_ag', { force: true })
.should('have.value', 'test_permission_ag');
.type('9202-permission', { force: true })
.should('have.value', '9202-permission');
cy.get('[data-test-subj="comboBoxInput"]').focus().type('some_permission');
cy.get('[id="submit"]').click();

// Permission exists on the remote data source
cy.get('[data-text="Customization"]').click();
cy.get('[data-test-subj="filter-custom"]').click();
cy.get('[data-test-subj="checkboxSelectRow-test_permission_ag"]').should('exist');
cy.get('[data-test-subj="tableHeaderCell_name_0"]').click();
cy.get('[data-test-subj="checkboxSelectRow-9202-permission"]').should('exist');

// Permission doesn't exist on local cluster
cy.visit(
Expand Down

0 comments on commit 3d2931d

Please sign in to comment.