From 3d2931da5dbbdfe11efbb0ebc2da8348a59a3a88 Mon Sep 17 00:00:00 2001 From: Derek Ho Date: Wed, 17 Apr 2024 10:49:15 -0400 Subject: [PATCH] Fix permissions test Signed-off-by: Derek Ho --- .../multi-datasources/multi_datasources_enabled.spec.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/cypress/e2e/multi-datasources/multi_datasources_enabled.spec.js b/test/cypress/e2e/multi-datasources/multi_datasources_enabled.spec.js index 45ba4dbca..e6c490800 100644 --- a/test/cypress/e2e/multi-datasources/multi_datasources_enabled.spec.js +++ b/test/cypress/e2e/multi-datasources/multi_datasources_enabled.spec.js @@ -172,15 +172,14 @@ describe('Multi-datasources enabled', () => { cy.get('[id="create-from-blank"]').click(); cy.get('[data-test-subj="name-text"]') .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(