From edb148b3aa22ad620595c45188d4c5f0b2cb1f3a Mon Sep 17 00:00:00 2001 From: Colin Sulllivan Date: Mon, 25 Nov 2024 12:45:15 -0600 Subject: [PATCH] chore: remove duplicate selector --- cypress/Shared/MeasuresPage.ts | 1 - .../WebInterface/Measure/MeasureSharing/MeasureSharing.cy.ts | 2 +- .../WebInterface/Measure/MeasureTransfer/MeasureTransfer.cy.ts | 2 +- .../Test Cases/QDM Test Case/TestCaseID/QDMTestCaseID.cy.ts | 2 +- .../QI-CORE Test Case/TestCaseID/QiCoreTestCaseID.cy.ts | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/cypress/Shared/MeasuresPage.ts b/cypress/Shared/MeasuresPage.ts index 89c26a02..3b221dbe 100644 --- a/cypress/Shared/MeasuresPage.ts +++ b/cypress/Shared/MeasuresPage.ts @@ -22,7 +22,6 @@ export class MeasuresPage { //Measure Version public static readonly versionMeasuresSelectionButton = '[data-testid="version-type"]' - public static readonly versionMeasuresConfirmInput = '[data-testid="confirm-version-input"]' public static readonly VersionDraftMsgs = '[data-testid="success-toast"]' public static readonly VersionDraftErrMsgs = '[data-testid="error-toast"]' public static readonly updateDraftedMeasuresTextBox = '[data-testid="measure-name-input"]' diff --git a/cypress/e2e/WebInterface/Measure/MeasureSharing/MeasureSharing.cy.ts b/cypress/e2e/WebInterface/Measure/MeasureSharing/MeasureSharing.cy.ts index 3f808021..4eff1094 100644 --- a/cypress/e2e/WebInterface/Measure/MeasureSharing/MeasureSharing.cy.ts +++ b/cypress/e2e/WebInterface/Measure/MeasureSharing/MeasureSharing.cy.ts @@ -190,7 +190,7 @@ describe('Measure Sharing - Multiple instances', () => { //Version the Measure MeasuresPage.actionCenter('version') cy.get(MeasuresPage.versionMeasuresSelectionButton).eq(0).type('{enter}') - cy.get(MeasuresPage.versionMeasuresConfirmInput).type('1.0.000') + cy.get(MeasuresPage.confirmMeasureVersionNumber).type('1.0.000') cy.get(MeasuresPage.measureVersionContinueBtn).click() cy.get(MeasuresPage.VersionDraftMsgs).should('contain.text', 'New version of measure is Successfully created') MeasuresPage.validateVersionNumber(newMeasureName, versionNumber) diff --git a/cypress/e2e/WebInterface/Measure/MeasureTransfer/MeasureTransfer.cy.ts b/cypress/e2e/WebInterface/Measure/MeasureTransfer/MeasureTransfer.cy.ts index 7ad60c41..ce62b79f 100644 --- a/cypress/e2e/WebInterface/Measure/MeasureTransfer/MeasureTransfer.cy.ts +++ b/cypress/e2e/WebInterface/Measure/MeasureTransfer/MeasureTransfer.cy.ts @@ -175,7 +175,7 @@ describe('Measure Transfer - Multiple instances', () => { //Version the Measure MeasuresPage.actionCenter('version') cy.get(MeasuresPage.versionMeasuresSelectionButton).eq(0).type('{enter}') - cy.get(MeasuresPage.versionMeasuresConfirmInput).type('1.0.000') + cy.get(MeasuresPage.confirmMeasureVersionNumber).type('1.0.000') cy.get(MeasuresPage.measureVersionContinueBtn).click() cy.get(MeasuresPage.VersionDraftMsgs).should('contain.text', 'New version of measure is Successfully created') //MeasuresPage.validateVersionNumber(newMeasureName, versionNumber) diff --git a/cypress/e2e/WebInterface/Test Cases/QDM Test Case/TestCaseID/QDMTestCaseID.cy.ts b/cypress/e2e/WebInterface/Test Cases/QDM Test Case/TestCaseID/QDMTestCaseID.cy.ts index 3423ff4a..ab0f21ea 100644 --- a/cypress/e2e/WebInterface/Test Cases/QDM Test Case/TestCaseID/QDMTestCaseID.cy.ts +++ b/cypress/e2e/WebInterface/Test Cases/QDM Test Case/TestCaseID/QDMTestCaseID.cy.ts @@ -300,7 +300,7 @@ describe('QDM Measure - Test case number on a Draft Measure', () => { //Version the Measure MeasuresPage.actionCenter('version') cy.get(MeasuresPage.versionMeasuresSelectionButton).eq(0).type('{enter}') - cy.get(MeasuresPage.versionMeasuresConfirmInput).type('1.0.000') + cy.get(MeasuresPage.confirmMeasureVersionNumber).type('1.0.000') cy.get(MeasuresPage.measureVersionContinueBtn).click() cy.get(MeasuresPage.VersionDraftMsgs).should('contain.text', 'New version of measure is Successfully created') MeasuresPage.validateVersionNumber(newMeasureName, versionNumber) diff --git a/cypress/e2e/WebInterface/Test Cases/QI-CORE Test Case/TestCaseID/QiCoreTestCaseID.cy.ts b/cypress/e2e/WebInterface/Test Cases/QI-CORE Test Case/TestCaseID/QiCoreTestCaseID.cy.ts index 17c862a8..dabd15b3 100644 --- a/cypress/e2e/WebInterface/Test Cases/QI-CORE Test Case/TestCaseID/QiCoreTestCaseID.cy.ts +++ b/cypress/e2e/WebInterface/Test Cases/QI-CORE Test Case/TestCaseID/QiCoreTestCaseID.cy.ts @@ -259,7 +259,7 @@ describe('Qi Core Measure - Test case number on a Draft Measure', () => { //Version the Measure MeasuresPage.actionCenter('version') cy.get(MeasuresPage.versionMeasuresSelectionButton).eq(0).type('{enter}') - cy.get(MeasuresPage.versionMeasuresConfirmInput).type('1.0.000') + cy.get(MeasuresPage.confirmMeasureVersionNumber).type('1.0.000') cy.get(MeasuresPage.measureVersionContinueBtn).click() cy.get(MeasuresPage.VersionDraftMsgs).should('contain.text', 'New version of measure is Successfully created') MeasuresPage.validateVersionNumber(newMeasureName, versionNumber)