Skip to content

Commit 0ccfba7

Browse files
r1walzgithub-actions[bot]
authored andcommitted
ism-plugin: fix tests (#1030)
Change ... 1. 'Close indices' to 'Close' 2. 'Open indices' to 'Open' 3. 'indices' to 'indexes' 4. Sample slack webhook to meet current validation ... to match current tech writing guidelines. Signed-off-by: Rohit Ashiwal <[email protected]> (cherry picked from commit 10443bd)
1 parent ea15869 commit 0ccfba7

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

cypress/integration/plugins/index-management-dashboards-plugin/indices_spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ describe('Indices', () => {
472472
.click();
473473

474474
// Check for close index modal
475-
cy.contains('Close indices');
475+
cy.contains('Close');
476476

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

526526
// Check for open index modal
527-
cy.contains('Open indices');
527+
cy.contains('Open');
528528

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

cypress/integration/plugins/index-management-dashboards-plugin/managed_indices_spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ describe('Managed indices', () => {
5858
});
5959

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

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

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

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

125125
// Confirm we got retry toaster
126-
cy.contains('Retried 1 managed indices');
126+
cy.contains('Retried 1 managed indexes');
127127

128128
// Reload the page
129129
cy.reload();
@@ -249,10 +249,10 @@ describe('Managed indices', () => {
249249
});
250250

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

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

257257
// Speed up execution of managed index
258258
cy.updateManagedIndexConfigStartTime(SAMPLE_INDEX);

cypress/integration/plugins/index-management-dashboards-plugin/notification_settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ describe('NotificationSettings', () => {
6666
config_type: 'slack',
6767
is_enabled: true,
6868
slack: {
69-
url: 'https://sample-slack-webhook',
69+
url: 'https://hooks.slack.com/services/sample-slack-webhook',
7070
},
7171
},
7272
},

cypress/integration/plugins/index-management-dashboards-plugin/rollups_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ describe('Rollups', () => {
152152
cy.get('button').contains('Next').click({ force: true });
153153

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

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

0 commit comments

Comments
 (0)