Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.x] ism-plugin: fix tests #1031

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ describe('Indices', () => {
.click();

// Check for close index modal
cy.contains('Close indices');
cy.contains('Close');

// Close confirm button should be disabled
cy.get('[data-test-subj="Close Confirm button"]').should(
Expand Down Expand Up @@ -524,7 +524,7 @@ describe('Indices', () => {
.click();

// Check for open index modal
cy.contains('Open indices');
cy.contains('Open');

cy.get('[data-test-subj="Open Confirm button"]').click();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ describe('Managed indices', () => {
});

// Confirm we got a remove policy toaster
cy.contains('Removed policy from 1 managed indices');
cy.contains('Removed policy from 1 managed indexes');

// Wait some time for remove policy to execute before reload
cy.wait(3000).reload();

// Confirm we are back to empty loading state, give 20 seconds as OSD takes a while to load
cy.contains('There are no existing managed indices.', { timeout: 20000 });
cy.contains('There are no existing managed indexes.', { timeout: 20000 });
});
});

Expand Down Expand Up @@ -123,7 +123,7 @@ describe('Managed indices', () => {
cy.get(`[data-test-subj="retryModalRetryButton"]`).click({ force: true });

// Confirm we got retry toaster
cy.contains('Retried 1 managed indices');
cy.contains('Retried 1 managed indexes');

// Reload the page
cy.reload();
Expand Down Expand Up @@ -249,10 +249,10 @@ describe('Managed indices', () => {
});

// Confirm we got the change policy toaster
cy.contains('Changed policy on 1 indices');
cy.contains('Changed policy on 1 indexes');

// Click back to Managed Indices page by clicking "Managed indices" breadcrumb
cy.contains('Policy managed indices').click();
cy.contains('Policy managed indexes').click();

// Speed up execution of managed index
cy.updateManagedIndexConfigStartTime(SAMPLE_INDEX);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe('NotificationSettings', () => {
config_type: 'slack',
is_enabled: true,
slack: {
url: 'https://sample-slack-webhook',
url: 'https://hooks.slack.com/services/sample-slack-webhook',
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ describe('Rollups', () => {
cy.get('button').contains('Next').click({ force: true });

// Confirm that we got to step 4 of creation page
cy.contains('Job name and indices');
cy.contains('Job name and indexes');

// Click the create button
cy.get('button').contains('Create').click({ force: true });
Expand Down
Loading