diff --git a/cypress/integration/add-job/back-to-all-jobs.feature b/cypress/integration/add-job/back-to-all-jobs.feature index 9efe12b7..4ed0728c 100644 --- a/cypress/integration/add-job/back-to-all-jobs.feature +++ b/cypress/integration/add-job/back-to-all-jobs.feature @@ -10,4 +10,4 @@ Feature: Users should be able to navigate back to the list route Scenario: User clicks the cancel button after editing the form Given the user has edited the form When the user clicks the cancel button - Then the user will be asked if they want to discard the form + Then the user will be asked if they want to discard their changes 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 3002bbd9..050770b5 100644 --- a/cypress/integration/add-job/back-to-all-jobs/index.js +++ b/cypress/integration/add-job/back-to-all-jobs/index.js @@ -17,6 +17,8 @@ Then('the list route will be loaded', () => { cy.findByRole('heading', { name: 'Scheduled jobs' }).should('exist') }) -Then('the user will be asked if they want to discard the form', () => { - cy.findByText('Are you sure you want to discard this form?').should('exist') +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( + 'exist' + ) }) diff --git a/cypress/integration/add-queue/back-to-all-jobs.feature b/cypress/integration/add-queue/back-to-all-jobs.feature index 85ad4021..52453d7d 100644 --- a/cypress/integration/add-queue/back-to-all-jobs.feature +++ b/cypress/integration/add-queue/back-to-all-jobs.feature @@ -10,4 +10,4 @@ Feature: Users should be able to navigate back to the list route Scenario: User clicks the cancel button after editing the form Given the user has edited the form When the user clicks the cancel button - Then the user will be asked if they want to discard the form + Then the user will be asked if they want to discard their changes 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 5c60c719..7dd359c2 100644 --- a/cypress/integration/add-queue/back-to-all-jobs/index.js +++ b/cypress/integration/add-queue/back-to-all-jobs/index.js @@ -17,6 +17,8 @@ Then('the list route will be loaded', () => { cy.findByRole('heading', { name: 'Scheduled jobs' }).should('exist') }) -Then('the user will be asked if they want to discard the form', () => { - cy.findByText('Are you sure you want to discard this form?').should('exist') +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( + 'exist' + ) }) diff --git a/cypress/integration/edit-job/back-to-all-jobs.feature b/cypress/integration/edit-job/back-to-all-jobs.feature index 6c988f93..c30ec5af 100644 --- a/cypress/integration/edit-job/back-to-all-jobs.feature +++ b/cypress/integration/edit-job/back-to-all-jobs.feature @@ -11,4 +11,4 @@ Feature: Users should be able to navigate back to the list route Scenario: User clicks the cancel button after editing the form Given the user has edited the form When the user clicks the cancel button - Then the user will be asked if they want to discard the form + Then the user will be asked if they want to discard their changes 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 b2489b87..e2d314d8 100644 --- a/cypress/integration/edit-job/back-to-all-jobs/index.js +++ b/cypress/integration/edit-job/back-to-all-jobs/index.js @@ -24,6 +24,8 @@ Then('the list route will be loaded', () => { cy.findByRole('heading', { name: 'Scheduled jobs' }).should('exist') }) -Then('the user will be asked if they want to discard the form', () => { - cy.findByText('Are you sure you want to discard this form?').should('exist') +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( + 'exist' + ) }) diff --git a/cypress/integration/edit-queue/back-to-all-jobs.feature b/cypress/integration/edit-queue/back-to-all-jobs.feature index 4c307a36..a34674b5 100644 --- a/cypress/integration/edit-queue/back-to-all-jobs.feature +++ b/cypress/integration/edit-queue/back-to-all-jobs.feature @@ -11,4 +11,4 @@ Feature: Users should be able to navigate back to the list route Scenario: User clicks the cancel button after editing the form Given the user has edited the form When the user clicks the cancel button - Then the user will be asked if they want to discard the form + Then the user will be asked if they want to discard their changes 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 d8416496..fdfcc493 100644 --- a/cypress/integration/edit-queue/back-to-all-jobs/index.js +++ b/cypress/integration/edit-queue/back-to-all-jobs/index.js @@ -39,6 +39,8 @@ Then('the list route will be loaded', () => { cy.findByRole('heading', { name: 'Scheduled jobs' }).should('exist') }) -Then('the user will be asked if they want to discard the form', () => { - cy.findByText('Are you sure you want to discard this form?').should('exist') +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( + 'exist' + ) }) diff --git a/i18n/en.pot b/i18n/en.pot index be286510..5aa8b5a2 100644 --- a/i18n/en.pot +++ b/i18n/en.pot @@ -5,8 +5,8 @@ msgstr "" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" -"POT-Creation-Date: 2023-11-29T10:47:23.653Z\n" -"PO-Revision-Date: 2023-11-29T10:47:23.656Z\n" +"POT-Creation-Date: 2024-01-02T14:28:02.554Z\n" +"PO-Revision-Date: 2024-01-02T14:28:02.554Z\n" msgid "Something went wrong" msgstr "Something went wrong" @@ -237,8 +237,8 @@ msgstr "Are you sure you want to delete this job?" msgid "Are you sure you want to delete this queue?" msgstr "Are you sure you want to delete this queue?" -msgid "Are you sure you want to discard this form?" -msgstr "Are you sure you want to discard this form?" +msgid "Are you sure you want to discard your changes?" +msgstr "Are you sure you want to discard your changes?" msgid "Discard" msgstr "Discard" diff --git a/src/components/Modal/DiscardFormModal.js b/src/components/Modal/DiscardFormModal.js index a5d0363c..2677c523 100644 --- a/src/components/Modal/DiscardFormModal.js +++ b/src/components/Modal/DiscardFormModal.js @@ -13,7 +13,7 @@ import history from '../../services/history' const DiscardFormModal = ({ hideModal }) => ( - {i18n.t('Are you sure you want to discard this form?')} + {i18n.t('Are you sure you want to discard your changes?')}