From 80215d54878d17cced59fca50328311b53b65702 Mon Sep 17 00:00:00 2001 From: AWSHurneyt Date: Thu, 14 Mar 2024 14:35:22 -0700 Subject: [PATCH] Fixed cypress test. Signed-off-by: AWSHurneyt --- .../integration/cluster_metrics_monitor_spec.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cypress/integration/cluster_metrics_monitor_spec.js b/cypress/integration/cluster_metrics_monitor_spec.js index ee255ab0a..2a00488f9 100644 --- a/cypress/integration/cluster_metrics_monitor_spec.js +++ b/cypress/integration/cluster_metrics_monitor_spec.js @@ -101,8 +101,8 @@ describe('ClusterMetricsMonitor', () => { // Wait for the API types to load and then type in the Cluster Health API cy.get('[data-test-subj="clusterMetricsApiTypeComboBox"]').type('cluster health{enter}'); - // Confirm the Query parameters field is present and described as "optional" - cy.contains('Query parameters - optional'); + // Confirm the Path parameters field is present and described as "optional" + cy.contains('Path parameters - optional'); cy.get('[data-test-subj="clusterMetricsParamsFieldText"]'); // Press the 'Run for response' button @@ -158,8 +158,8 @@ describe('ClusterMetricsMonitor', () => { // Wait for the API types to load and then type in the Cluster Health API cy.get('[data-test-subj="clusterMetricsApiTypeComboBox"]').type('nodes stats{enter}'); - // Confirm the Query parameters field is not present - cy.contains('Query parameters').should('not.exist'); + // Confirm the Path parameters field is not present + cy.contains('Path parameters').should('not.exist'); cy.get('[data-test-subj="clusterMetricsParamsFieldText"]').should('not.exist'); // Press the 'Run for response' button @@ -200,7 +200,7 @@ describe('ClusterMetricsMonitor', () => { }); }); - describe('displays Query parameters field appropriately', () => { + describe('displays Path parameters field appropriately', () => { beforeEach(() => { cy.deleteAllMonitors(); cy.reload(); @@ -222,9 +222,9 @@ describe('ClusterMetricsMonitor', () => { // Wait for the API types to load and then type in the Cluster Health API cy.get('[data-test-subj="clusterMetricsApiTypeComboBox"]').type('list snapshots{enter}'); - // Confirm the Query parameters field is present and is not described as "optional" - cy.contains('Query parameters - optional').should('not.exist'); - cy.contains('Query parameters'); + // Confirm the Path parameters field is present and is not described as "optional" + cy.contains('Path parameters - optional').should('not.exist'); + cy.contains('Path parameters'); cy.get('[data-test-subj="clusterMetricsParamsFieldText"]'); }); });