From 169346b587f5fc1440e410c4cf82bc823d50c649 Mon Sep 17 00:00:00 2001 From: ismay Date: Thu, 15 Feb 2024 12:37:46 +0100 Subject: [PATCH] test: update cypress test to new label --- cypress/integration/add-job/back-to-all-jobs/index.js | 2 +- cypress/integration/add-queue/back-to-all-jobs/index.js | 2 +- cypress/integration/edit-job/back-to-all-jobs/index.js | 2 +- cypress/integration/edit-queue/back-to-all-jobs/index.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cypress/integration/add-job/back-to-all-jobs/index.js b/cypress/integration/add-job/back-to-all-jobs/index.js index 050770b5..53f67c6f 100644 --- a/cypress/integration/add-job/back-to-all-jobs/index.js +++ b/cypress/integration/add-job/back-to-all-jobs/index.js @@ -18,7 +18,7 @@ Then('the list route will be loaded', () => { }) Then('the user will be asked if they want to discard their changes', () => { - cy.findByText('Are you sure you want to discard your changes?').should( + cy.findByText('Discard unsaved changes?').should( 'exist' ) }) diff --git a/cypress/integration/add-queue/back-to-all-jobs/index.js b/cypress/integration/add-queue/back-to-all-jobs/index.js index 7dd359c2..4149d03c 100644 --- a/cypress/integration/add-queue/back-to-all-jobs/index.js +++ b/cypress/integration/add-queue/back-to-all-jobs/index.js @@ -18,7 +18,7 @@ Then('the list route will be loaded', () => { }) Then('the user will be asked if they want to discard their changes', () => { - cy.findByText('Are you sure you want to discard your changes?').should( + cy.findByText('Discard unsaved changes?').should( 'exist' ) }) diff --git a/cypress/integration/edit-job/back-to-all-jobs/index.js b/cypress/integration/edit-job/back-to-all-jobs/index.js index e2d314d8..7591d5da 100644 --- a/cypress/integration/edit-job/back-to-all-jobs/index.js +++ b/cypress/integration/edit-job/back-to-all-jobs/index.js @@ -25,7 +25,7 @@ Then('the list route will be loaded', () => { }) Then('the user will be asked if they want to discard their changes', () => { - cy.findByText('Are you sure you want to discard your changes?').should( + cy.findByText('Discard unsaved changes?').should( 'exist' ) }) diff --git a/cypress/integration/edit-queue/back-to-all-jobs/index.js b/cypress/integration/edit-queue/back-to-all-jobs/index.js index fdfcc493..34e68350 100644 --- a/cypress/integration/edit-queue/back-to-all-jobs/index.js +++ b/cypress/integration/edit-queue/back-to-all-jobs/index.js @@ -40,7 +40,7 @@ Then('the list route will be loaded', () => { }) Then('the user will be asked if they want to discard their changes', () => { - cy.findByText('Are you sure you want to discard your changes?').should( + cy.findByText('Discard unsaved changes?').should( 'exist' ) })