Skip to content

Commit

Permalink
Fixed alerting cypress tests. (#1451)
Browse files Browse the repository at this point in the history
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Co-authored-by: SuZhou-Joe <suzhou@amazon.com>
  • Loading branch information
AWSHurneyt and SuZhou-Joe authored Aug 2, 2024
1 parent 6ec13d8 commit 86599cf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,11 @@ describe('Bucket-Level Monitors', () => {
// Click Edit button
cy.contains('Edit').click({ force: true });

// Wait for page to load
// The default admin user for a docker-created domain doesn't have the permissions needed to select clusters. Disabling this check when security is enabled
if (!Cypress.env('SECURITY_ENABLED'))
cy.contains('Select clusters').click({ force: true });

// Click on the Index field and type in multiple index names to replicate the bug
cy.get('#index')
.click({ force: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ describe('Query-Level Monitors', () => {
force: true,
});

// Wait for page to load
// The default admin user for a docker-created domain doesn't have the permissions needed to select clusters. Disabling this check when security is enabled
if (!Cypress.env('SECURITY_ENABLED'))
cy.contains('Select clusters').click({ force: true });

// Click on the Index field and type in multiple index names to replicate the bug
cy.get('#index')
.click({ force: true })
Expand Down Expand Up @@ -336,6 +341,11 @@ describe('Query-Level Monitors', () => {
// Select visual editor
cy.get('[data-test-subj="visualEditorRadioCard"]').click({ force: true });

// Wait for page to load
// The default admin user for a docker-created domain doesn't have the permissions needed to select clusters. Disabling this check when security is enabled
if (!Cypress.env('SECURITY_ENABLED'))
cy.contains('Select clusters').click({ force: true });

// Wait for input to load and then type in the index name
cy.get('#index').type(
`{backspace}${ALERTING_INDEX.SAMPLE_DATA_ECOMMERCE}{enter}`,
Expand Down

0 comments on commit 86599cf

Please sign in to comment.