From 65e3e45076e6353f55a9faf1da5b2084d3edbd6a Mon Sep 17 00:00:00 2001 From: Iqbal Ahmed Date: Wed, 4 Dec 2024 10:23:31 +0000 Subject: [PATCH] Revert "PP-12020 Upgrade to design system v5" This reverts commit b1cdb7785ab5c85316852bd8681f404da10f6ade. --- .../js/components/add-service-spinner.js | 1 + .../request-psp-test-account-spinner.js | 1 + app/assets/sass/application.scss | 5 +- app/assets/sass/components/navigation.scss | 1 - app/assets/sass/components/print-button.scss | 2 +- .../sass/components/request-to-go-live.scss | 11 ++++ app/views/agreements/macro/status.njk | 8 +-- app/views/api-keys/create.njk | 2 +- app/views/includes/phase-banner.njk | 4 +- app/views/includes/scripts.njk | 2 +- app/views/payouts/list.njk | 4 +- app/views/request-to-go-live/index.njk | 22 ++----- app/views/services/_service-section.njk | 2 +- app/views/services/_service-switch.njk | 2 +- .../stripe-details/bank-account/index.njk | 1 + app/views/switch-psp/switch-psp.njk | 6 +- app/views/transaction-detail/index.njk | 2 +- app/views/transactions/filter.njk | 2 +- app/views/transactions/index.njk | 4 +- app/views/transactions/paginator.njk | 2 +- app/views/webhooks/_paginator.njk | 2 +- app/views/webhooks/message.njk | 2 +- app/views/your-psp/_stripe.njk | 6 +- package-lock.json | 14 ++--- package.json | 2 +- server.js | 6 +- .../integration/agreements/agreement.cy.js | 2 +- ...l-service-transactions-no-autosearch.cy.js | 4 +- .../all-service-transactions.cy.js | 8 +-- .../integration/my-services/my-services.cy.js | 2 +- .../integration/payouts/payouts-list.cy.js | 14 ++--- .../request-to-go-live/index.cy.js | 38 ++++++------ .../integration/settings/switch-psp.cy.js | 59 +++++++++---------- .../settings/your-psp-stripe-tasklist.cy.js | 54 ++++++++--------- test/test-helpers/html-assertions.js | 2 +- 35 files changed, 147 insertions(+), 152 deletions(-) diff --git a/app/assets/js/components/add-service-spinner.js b/app/assets/js/components/add-service-spinner.js index bb8a2f250a..e540dacbb1 100644 --- a/app/assets/js/components/add-service-spinner.js +++ b/app/assets/js/components/add-service-spinner.js @@ -14,5 +14,6 @@ document.getElementById('submit-button').setAttribute('disabled', true) document.getElementById('submit-button').setAttribute('aria-disabled', true) + document.getElementById('submit-button').setAttribute('class', 'govuk-button govuk-button--disabled') } })() diff --git a/app/assets/js/components/request-psp-test-account-spinner.js b/app/assets/js/components/request-psp-test-account-spinner.js index e6144e5e7a..e453c151c0 100644 --- a/app/assets/js/components/request-psp-test-account-spinner.js +++ b/app/assets/js/components/request-psp-test-account-spinner.js @@ -13,5 +13,6 @@ document.getElementById('submit-button').setAttribute('disabled', true) document.getElementById('submit-button').setAttribute('aria-disabled', true) + document.getElementById('submit-button').setAttribute('class', 'govuk-button govuk-button--disabled') } })() diff --git a/app/assets/sass/application.scss b/app/assets/sass/application.scss index e6b0f87f90..d7ec1f50f3 100644 --- a/app/assets/sass/application.scss +++ b/app/assets/sass/application.scss @@ -1,10 +1,7 @@ // We set all our pages wider in selfservice because it helps people viewing the list of transactions $govuk-page-width: 1200px; -$govuk-suppressed-warnings: ( - govuk-typography-scale-14 -); -@import "govuk-frontend/dist/govuk/all"; +@import "govuk-frontend/govuk/all"; @import "accessible-autocomplete"; @import "components/cookie-message"; diff --git a/app/assets/sass/components/navigation.scss b/app/assets/sass/components/navigation.scss index 722d7389fc..c212939ecd 100644 --- a/app/assets/sass/components/navigation.scss +++ b/app/assets/sass/components/navigation.scss @@ -13,7 +13,6 @@ .service-info--tag { display: inline-block; margin-left: 5px; - max-width: none; } .service-info { diff --git a/app/assets/sass/components/print-button.scss b/app/assets/sass/components/print-button.scss index 656b57c2c1..7052a77f77 100644 --- a/app/assets/sass/components/print-button.scss +++ b/app/assets/sass/components/print-button.scss @@ -2,7 +2,7 @@ display: none; } -.govuk-frontend-supported { +.js-enabled { .print-button-wrapper { display: block; } diff --git a/app/assets/sass/components/request-to-go-live.scss b/app/assets/sass/components/request-to-go-live.scss index bdaedbdcfd..675bb6b6d4 100644 --- a/app/assets/sass/components/request-to-go-live.scss +++ b/app/assets/sass/components/request-to-go-live.scss @@ -18,6 +18,17 @@ display: inline-block; width: 30px; } + .status { + background-color: govuk-colour("blue"); + color: govuk-colour("white"); + text-transform: uppercase; + letter-spacing: 1px; + font-size: 14px; + font-weight: bold; + padding: 0 5px; + margin-left: govuk-spacing(1); + vertical-align: middle; + } .waiting { background-color: govuk-colour("dark-grey"); } diff --git a/app/views/agreements/macro/status.njk b/app/views/agreements/macro/status.njk index 913ed10a49..65b33f2a1c 100644 --- a/app/views/agreements/macro/status.njk +++ b/app/views/agreements/macro/status.njk @@ -5,10 +5,10 @@ "INACTIVE": "govuk-tag--yellow" } %} {% set statusTextMap = { -"CREATED": "Needs payment details", -"ACTIVE": "Active", -"CANCELLED": "Cancelled", -"INACTIVE": "Inactive" +"CREATED": "needs payment details", +"ACTIVE": "active", +"CANCELLED": "cancelled", +"INACTIVE": "inactive" } %} {% macro agreementStatusTag(status) %} diff --git a/app/views/api-keys/create.njk b/app/views/api-keys/create.njk index 898600a9b8..4553069041 100644 --- a/app/views/api-keys/create.njk +++ b/app/views/api-keys/create.njk @@ -51,7 +51,7 @@
- Warning + Warning

Store your API key securely

diff --git a/app/views/includes/phase-banner.njk b/app/views/includes/phase-banner.njk index c3559cd51a..41ee262466 100644 --- a/app/views/includes/phase-banner.njk +++ b/app/views/includes/phase-banner.njk @@ -23,7 +23,7 @@ {% if normalisedPaymentProvider === 'sandbox' %} Test {% else %} - {{ normalisedPaymentProvider | capitalize }} test + {{ normalisedPaymentProvider }} Test {% endif %} {% else %} Live @@ -35,7 +35,7 @@ - switch psp {% endif %} {% endset %} - {{ tagText }} + {{ tagText }} {% endif %} {% endset %} diff --git a/app/views/includes/scripts.njk b/app/views/includes/scripts.njk index cff41d091d..4ca4f8b1a0 100644 --- a/app/views/includes/scripts.njk +++ b/app/views/includes/scripts.njk @@ -1 +1 @@ - + diff --git a/app/views/payouts/list.njk b/app/views/payouts/list.njk index f1c7dcdb8f..38034b366f 100644 --- a/app/views/payouts/list.njk +++ b/app/views/payouts/list.njk @@ -8,7 +8,7 @@ Payments to your bank account - GOV.UK Pay {% block beforeContent %} {% set pageTitleBreadcrumbWithTag %} Payments to your bank account - {{ "Live" if filterLiveAccounts else "Test" }} + {{ "LIVE" if filterLiveAccounts else "TEST" }} {% endset %} {{ breadcrumbs([ { text: "My services", href: routes.serviceSwitcher.index }, @@ -20,7 +20,7 @@ Payments to your bank account - GOV.UK Pay

Payments to your bank account - {{ "Live" if filterLiveAccounts else "Test" }} + {{ "LIVE" if filterLiveAccounts else "TEST" }}

diff --git a/app/views/request-to-go-live/index.njk b/app/views/request-to-go-live/index.njk index c06ad4f07d..f5ae0c35ab 100644 --- a/app/views/request-to-go-live/index.njk +++ b/app/views/request-to-go-live/index.njk @@ -1,5 +1,4 @@ {% extends "../layout.njk" %} -{%- from "govuk/components/tag/macro.njk" import govukTag -%} {% block pageTitle %} Request a live account - {{ currentService.name }} - GOV.UK Pay @@ -33,7 +32,7 @@
- Warning + Warning All users with admin permissions can submit this information. You can manage your users here.
@@ -92,28 +91,19 @@
  1. Add your organisation’s name and address. These details will appear on your payment pages. {% if enteredOrganisationAddress %} - {{ govukTag({ - text: "Completed" - }) }} - {% elif enteredOrganisationName %} - {{ govukTag({ - text: "In progress", - classes: "govuk-tag--grey" - }) }} + Completed + {% elif enteredOrganisationName %} + In Progress {% endif %}
  2. Tell us which payment service provider you will use. {% if chosenHowToProcessPayments %} - {{ govukTag({ - text: "Completed" - }) }} + Completed {% endif %}
  3. Read and accept our legal terms. {% if agreedToTerms %} - {{ govukTag({ - text: "Completed" - }) }} + Completed {% endif %}
diff --git a/app/views/services/_service-section.njk b/app/views/services/_service-section.njk index 6d8196f505..6df7dfa94f 100644 --- a/app/views/services/_service-section.njk +++ b/app/views/services/_service-section.njk @@ -7,7 +7,7 @@ {{ service.name }} {% if service.isWorldpayTestService %} {{govukTag({ - text: "Worldpay test service", + text: "WORLDPAY TEST SERVICE", classes: "govuk-tag--grey" })}} {% endif %} diff --git a/app/views/services/_service-switch.njk b/app/views/services/_service-switch.njk index fb4cde136f..c64468312d 100644 --- a/app/views/services/_service-switch.njk +++ b/app/views/services/_service-switch.njk @@ -15,7 +15,7 @@ {% endif %} {% if account.provider_switch_enabled and service.isAdminUser %} - switch PSP + switch PSP {% endif %} diff --git a/app/views/simplified-account/settings/stripe-details/bank-account/index.njk b/app/views/simplified-account/settings/stripe-details/bank-account/index.njk index 1275e67631..a25c6b8748 100644 --- a/app/views/simplified-account/settings/stripe-details/bank-account/index.njk +++ b/app/views/simplified-account/settings/stripe-details/bank-account/index.njk @@ -77,6 +77,7 @@ document.getElementById('bank-account-form').addEventListener('submit', function () { submitButton.setAttribute('disabled', 'true') submitButton.setAttribute('aria-disabled', 'true') + submitButton.setAttribute('class', 'govuk-button govuk-button--disabled') submitButton.textContent = "Saving..." }) diff --git a/app/views/switch-psp/switch-psp.njk b/app/views/switch-psp/switch-psp.njk index fa64517b66..9c696d0fce 100644 --- a/app/views/switch-psp/switch-psp.njk +++ b/app/views/switch-psp/switch-psp.njk @@ -22,11 +22,11 @@ {% if not item.enabled and not item.complete %} - Cannot start yet + cannot start yet {% elif item.enabled and not item.complete %} - Not started + not started {% elif item.complete %} - Completed + completed {% endif %} {% endmacro %} diff --git a/app/views/transaction-detail/index.njk b/app/views/transaction-detail/index.njk index a01ed7516c..63c87230c8 100644 --- a/app/views/transaction-detail/index.njk +++ b/app/views/transaction-detail/index.njk @@ -12,7 +12,7 @@ {% if contextIsAllServiceTransactions %} {% set pageTitleBreadcrumbWithTag %} Transactions for all services - {{ "Live" if live else "Test" }} + {{ "LIVE" if live else "TEST" }} {% endset %} {{ breadcrumbs([ { text: "My services", href: routes.serviceSwitcher.index }, diff --git a/app/views/transactions/filter.njk b/app/views/transactions/filter.njk index b812c76bb2..9b8e3086df 100644 --- a/app/views/transactions/filter.njk +++ b/app/views/transactions/filter.njk @@ -270,7 +270,7 @@ {% endif %}
-
+
Advanced filters diff --git a/app/views/transactions/index.njk b/app/views/transactions/index.njk index b736e5b092..25311c704b 100644 --- a/app/views/transactions/index.njk +++ b/app/views/transactions/index.njk @@ -30,7 +30,7 @@ {% if allServiceTransactions %} {% set pageTitleBreadcrumbWithTag %} Transactions for all services - {{ "Live" if filterLiveAccounts else "Test" }} + {{ "LIVE" if filterLiveAccounts else "TEST" }} {% endset %} {{ breadcrumbs([ { text: "My services", href: routes.serviceSwitcher.index }, @@ -62,7 +62,7 @@

{% if allServiceTransactions %} Transactions for all services - {{ "Live" if filterLiveAccounts else "Test" }} + {{ "LIVE" if filterLiveAccounts else "TEST" }} {% else %} Transactions {% endif %} diff --git a/app/views/transactions/paginator.njk b/app/views/transactions/paginator.njk index 46d4b4f384..2073079d79 100644 --- a/app/views/transactions/paginator.njk +++ b/app/views/transactions/paginator.njk @@ -6,7 +6,7 @@ - diff --git a/app/views/webhooks/_paginator.njk b/app/views/webhooks/_paginator.njk index 2ff811a96d..c984201310 100644 --- a/app/views/webhooks/_paginator.njk +++ b/app/views/webhooks/_paginator.njk @@ -6,7 +6,7 @@ - diff --git a/app/views/webhooks/message.njk b/app/views/webhooks/message.njk index 3201f4fa05..daa2969cf3 100644 --- a/app/views/webhooks/message.njk +++ b/app/views/webhooks/message.njk @@ -54,7 +54,7 @@ }) }}
-
+
{{ messageType }} event body diff --git a/app/views/your-psp/_stripe.njk b/app/views/your-psp/_stripe.njk index 54a168547e..f3e259c4d3 100644 --- a/app/views/your-psp/_stripe.njk +++ b/app/views/your-psp/_stripe.njk @@ -14,11 +14,11 @@
{% if not item.enabled and not item.completed %} - Cannot start yet + cannot start yet {% elif item.enabled and not item.completed %} - Not started + not started {% elif item.completed %} - Completed + completed {% endif %}
diff --git a/package-lock.json b/package-lock.json index 2f78c48612..d68556a49e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,7 @@ "express": "4.21.1", "express-validator": "^7.2.0", "google-libphonenumber": "3.2.33", - "govuk-frontend": "^5.7.1", + "govuk-frontend": "^4.8.0", "http-proxy": "1.18.x", "https-proxy-agent": "5.0.1", "joi": "17.12.1", @@ -11252,9 +11252,9 @@ } }, "node_modules/govuk-frontend": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/govuk-frontend/-/govuk-frontend-5.7.1.tgz", - "integrity": "sha512-jF1cq5rn57kxZmJRprUZhTQ31zaBBK4b5AyeJaPX3Yhg22lk90Mx/dQLvOk/ycV3wM7e0y+s4IPvb2fFaPlCGg==", + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/govuk-frontend/-/govuk-frontend-4.8.0.tgz", + "integrity": "sha512-NOmPJxL8IYq1HSNHYKx9XY2LLTxuwb+IFASiGQO4sgJ8K7AG66SlSeqARrcetevV8zOf+i1z+MbJJ2O7//OxAw==", "engines": { "node": ">= 4.2.0" } @@ -29316,9 +29316,9 @@ } }, "govuk-frontend": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/govuk-frontend/-/govuk-frontend-5.7.1.tgz", - "integrity": "sha512-jF1cq5rn57kxZmJRprUZhTQ31zaBBK4b5AyeJaPX3Yhg22lk90Mx/dQLvOk/ycV3wM7e0y+s4IPvb2fFaPlCGg==" + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/govuk-frontend/-/govuk-frontend-4.8.0.tgz", + "integrity": "sha512-NOmPJxL8IYq1HSNHYKx9XY2LLTxuwb+IFASiGQO4sgJ8K7AG66SlSeqARrcetevV8zOf+i1z+MbJJ2O7//OxAw==" }, "graceful-fs": { "version": "4.2.11", diff --git a/package.json b/package.json index 303dfce288..80e1b4d43c 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "express": "4.21.1", "express-validator": "^7.2.0", "google-libphonenumber": "3.2.33", - "govuk-frontend": "^5.7.1", + "govuk-frontend": "^4.8.0", "http-proxy": "1.18.x", "https-proxy-agent": "5.0.1", "joi": "17.12.1", diff --git a/server.js b/server.js index 9fec6b8d51..905c9e675e 100644 --- a/server.js +++ b/server.js @@ -71,7 +71,7 @@ function initialiseGlobalMiddleware (app) { if (process.env.DISABLE_REQUEST_LOGGING !== 'true') { app.use(/\/((?!public|favicon.ico).)*/, loggingMiddleware()) } - app.use(favicon('node_modules/govuk-frontend/dist/govuk/assets/images/favicon.ico')) + app.use(favicon('node_modules/govuk-frontend/govuk/assets/images/favicon.ico')) app.use(staticify.middleware) app.use(function (req, res, next) { @@ -99,7 +99,7 @@ function initialiseTemplateEngine (app) { // Configure nunjucks // see https://mozilla.github.io/nunjucks/api.html#configure const nunjucksEnvironment = nunjucks.configure([ - 'node_modules/govuk-frontend/dist/', + 'node_modules/govuk-frontend/', 'app/views' ], { express: app, // the express app that nunjucks should install to @@ -135,7 +135,7 @@ function initialiseTemplateEngine (app) { function initialisePublic (app) { app.use('/public', express.static('public')) - app.use('/', express.static('node_modules/govuk-frontend/dist/govuk')) + app.use('/', express.static('node_modules/govuk-frontend/govuk')) } function initialiseRoutes (app) { diff --git a/test/cypress/integration/agreements/agreement.cy.js b/test/cypress/integration/agreements/agreement.cy.js index 69acfd1a5a..93e8ae8e8d 100644 --- a/test/cypress/integration/agreements/agreement.cy.js +++ b/test/cypress/integration/agreements/agreement.cy.js @@ -65,7 +65,7 @@ describe('Agreement detail page', () => { cy.get('[data-cy=agreement-detail]').find('dt').eq(1).contains('Reference') cy.get('[data-cy=agreement-detail]').find('dd').eq(1).contains('valid-reference') cy.get('[data-cy=agreement-detail]').find('dt').eq(2).contains('Status') - cy.get('[data-cy=agreement-detail]').find('dd').eq(2).contains('Active') + cy.get('[data-cy=agreement-detail]').find('dd').eq(2).contains('active') cy.get('[data-cy=agreement-detail]').find('dt').eq(3).contains('Description') cy.get('[data-cy=agreement-detail]').find('dd').eq(3).contains("Reason shown to paying user for taking agreement ") cy.get('[data-cy=agreement-detail]').find('dt').eq(4).contains('Date created') diff --git a/test/cypress/integration/all-service-transactions/all-service-transactions-no-autosearch.cy.js b/test/cypress/integration/all-service-transactions/all-service-transactions-no-autosearch.cy.js index 35f0ca7441..cae86e68d7 100644 --- a/test/cypress/integration/all-service-transactions/all-service-transactions-no-autosearch.cy.js +++ b/test/cypress/integration/all-service-transactions/all-service-transactions-no-autosearch.cy.js @@ -79,7 +79,7 @@ describe('All service transactions without automatic search', () => { cy.get('.govuk-breadcrumbs').within(() => { cy.get('.govuk-breadcrumbs__list-item').should('have.length', 2) cy.get('.govuk-breadcrumbs__list-item').eq(1).contains('Transactions for all services') - cy.get('.govuk-breadcrumbs__list-item').eq(1).find('.govuk-tag').should('have.text', 'Live') + cy.get('.govuk-breadcrumbs__list-item').eq(1).find('.govuk-tag').should('have.text', 'LIVE') }) cy.get('.transactions-list--row').should('have.length', 0) @@ -92,7 +92,7 @@ describe('All service transactions without automatic search', () => { cy.get('.govuk-breadcrumbs').within(() => { cy.get('.govuk-breadcrumbs__list-item').should('have.length', 2) cy.get('.govuk-breadcrumbs__list-item').eq(1).contains('Transactions for all services') - cy.get('.govuk-breadcrumbs__list-item').eq(1).find('.govuk-tag').should('have.text', 'Test') + cy.get('.govuk-breadcrumbs__list-item').eq(1).find('.govuk-tag').should('have.text', 'TEST') }) cy.get('.transactions-list--row').should('have.length', 2) diff --git a/test/cypress/integration/all-service-transactions/all-service-transactions.cy.js b/test/cypress/integration/all-service-transactions/all-service-transactions.cy.js index bea0e0b15a..15725aeb77 100644 --- a/test/cypress/integration/all-service-transactions/all-service-transactions.cy.js +++ b/test/cypress/integration/all-service-transactions/all-service-transactions.cy.js @@ -98,7 +98,7 @@ describe('All service transactions', () => { cy.get('.govuk-breadcrumbs').within(() => { cy.get('.govuk-breadcrumbs__list-item').should('have.length', 2) cy.get('.govuk-breadcrumbs__list-item').eq(1).contains('Transactions for all services') - cy.get('.govuk-breadcrumbs__list-item').eq(1).find('.govuk-tag').should('have.text', 'Live') + cy.get('.govuk-breadcrumbs__list-item').eq(1).find('.govuk-tag').should('have.text', 'LIVE') }) cy.get('.transactions-list--row').should('have.length', 2) @@ -112,7 +112,7 @@ describe('All service transactions', () => { cy.get('.govuk-breadcrumbs').within(() => { cy.get('.govuk-breadcrumbs__list-item').should('have.length', 2) cy.get('.govuk-breadcrumbs__list-item').eq(1).contains('Transactions for all services') - cy.get('.govuk-breadcrumbs__list-item').eq(1).find('.govuk-tag').should('have.text', 'Test') + cy.get('.govuk-breadcrumbs__list-item').eq(1).find('.govuk-tag').should('have.text', 'TEST') }) cy.get('.transactions-list--row').should('have.length', 2) @@ -159,7 +159,7 @@ describe('All service transactions', () => { cy.get('.govuk-breadcrumbs').within(() => { cy.get('.govuk-breadcrumbs__list-item').should('have.length', 2) cy.get('.govuk-breadcrumbs__list-item').eq(1).contains('Transactions for all services') - cy.get('.govuk-breadcrumbs__list-item').eq(1).find('.govuk-tag').should('have.text', 'Test') + cy.get('.govuk-breadcrumbs__list-item').eq(1).find('.govuk-tag').should('have.text', 'TEST') }) cy.get('.govuk-back-link') @@ -172,7 +172,7 @@ describe('All service transactions', () => { cy.get('.govuk-breadcrumbs').within(() => { cy.get('.govuk-breadcrumbs__list-item').should('have.length', 2) cy.get('.govuk-breadcrumbs__list-item').eq(1).contains('Transactions for all services') - cy.get('.govuk-breadcrumbs__list-item').eq(1).find('.govuk-tag').should('have.text', 'Test') + cy.get('.govuk-breadcrumbs__list-item').eq(1).find('.govuk-tag').should('have.text', 'TEST') }) cy.get('.govuk-back-link') diff --git a/test/cypress/integration/my-services/my-services.cy.js b/test/cypress/integration/my-services/my-services.cy.js index df75079553..0039ee5878 100644 --- a/test/cypress/integration/my-services/my-services.cy.js +++ b/test/cypress/integration/my-services/my-services.cy.js @@ -28,7 +28,7 @@ describe('User has access to Worldpay services', () => { cy.setEncryptedCookies(authenticatedUserId) cy.visit('/my-services') - cy.get('strong').should('have.class', 'govuk-tag govuk-tag--grey').contains('Worldpay test service') + cy.get('strong').should('have.class', 'govuk-tag govuk-tag--grey').contains('WORLDPAY TEST SERVICE') }) it('should not display WORLDPAY TEST SERVICE label where there is a Worldpay Live account', () => { diff --git a/test/cypress/integration/payouts/payouts-list.cy.js b/test/cypress/integration/payouts/payouts-list.cy.js index 6c858c0cb3..49326896a8 100644 --- a/test/cypress/integration/payouts/payouts-list.cy.js +++ b/test/cypress/integration/payouts/payouts-list.cy.js @@ -42,7 +42,7 @@ describe('Payout list page', () => { ]) cy.visit('/payments-to-your-bank-account') - cy.get('h1').find('.govuk-tag').should('have.text', 'Live') + cy.get('h1').find('.govuk-tag').should('have.text', 'LIVE') cy.get('[data-cy=payout-date]').should('have.text', '31 December 2024') cy.get('#payout-list').find('tr').should('have.length', 2) cy.get('#pagination').should('not.exist') @@ -50,7 +50,7 @@ describe('Payout list page', () => { cy.get('.govuk-breadcrumbs').within(() => { cy.get('.govuk-breadcrumbs__list-item').should('have.length', 2) cy.get('.govuk-breadcrumbs__list-item').eq(1).contains('Payments to your bank account') - cy.get('.govuk-breadcrumbs__list-item').eq(1).find('.govuk-tag').should('have.text', 'Live') + cy.get('.govuk-breadcrumbs__list-item').eq(1).find('.govuk-tag').should('have.text', 'LIVE') }) }) @@ -87,14 +87,14 @@ describe('Payout list page', () => { cy.get('a').contains('Switch to test transactions').click() - cy.get('h1').find('.govuk-tag').should('have.text', 'Test') + cy.get('h1').find('.govuk-tag').should('have.text', 'TEST') cy.get('.govuk-inset-text').contains('Test reports represent') cy.get('#payout-list').find('tr').should('have.length', 2) cy.get('.govuk-breadcrumbs').within(() => { cy.get('.govuk-breadcrumbs__list-item').should('have.length', 2) cy.get('.govuk-breadcrumbs__list-item').eq(1).contains('Payments to your bank account') - cy.get('.govuk-breadcrumbs__list-item').eq(1).find('.govuk-tag').should('have.text', 'Test') + cy.get('.govuk-breadcrumbs__list-item').eq(1).find('.govuk-tag').should('have.text', 'TEST') }) }) @@ -105,14 +105,14 @@ describe('Payout list page', () => { ]) cy.visit('/payments-to-your-bank-account/test') - cy.get('h1').find('.govuk-tag').should('have.text', 'Test') + cy.get('h1').find('.govuk-tag').should('have.text', 'TEST') cy.get('#payout-list').find('tr').should('have.length', 2) cy.get('#pagination').should('not.exist') cy.get('.govuk-breadcrumbs').within(() => { cy.get('.govuk-breadcrumbs__list-item').should('have.length', 2) cy.get('.govuk-breadcrumbs__list-item').eq(1).contains('Payments to your bank account') - cy.get('.govuk-breadcrumbs__list-item').eq(1).find('.govuk-tag').should('have.text', 'Test') + cy.get('.govuk-breadcrumbs__list-item').eq(1).find('.govuk-tag').should('have.text', 'TEST') }) }) @@ -123,7 +123,7 @@ describe('Payout list page', () => { ]) cy.visit('/payments-to-your-bank-account') - cy.get('h1').find('.govuk-tag').should('have.text', 'Live') + cy.get('h1').find('.govuk-tag').should('have.text', 'LIVE') cy.get('#pagination').should('not.exist') cy.get('#payout-list').should('not.exist') cy.get('.govuk-section-break.govuk-section-break--l.govuk-section-break--visible').next('p').contains('No payments to your bank account found on or after 22 May 2020') diff --git a/test/cypress/integration/request-to-go-live/index.cy.js b/test/cypress/integration/request-to-go-live/index.cy.js index 3519ea281d..a52609e9e5 100644 --- a/test/cypress/integration/request-to-go-live/index.cy.js +++ b/test/cypress/integration/request-to-go-live/index.cy.js @@ -58,13 +58,13 @@ describe('Request to go live: index', () => { cy.get('h1 + p').should('contain', 'Complete these steps to request a live account') cy.get('ol.govuk-list > li:nth-child(1)').should('exist') - cy.get('ol.govuk-list > li:nth-child(1) > strong').should('not.exist') + cy.get('ol.govuk-list > li:nth-child(1) > span').should('not.exist') cy.get('ol.govuk-list > li:nth-child(2)').should('exist') - cy.get('ol.govuk-list > li:nth-child(2) > strong').should('not.exist') + cy.get('ol.govuk-list > li:nth-child(2) > span').should('not.exist') cy.get('ol.govuk-list > li:nth-child(3)').should('exist') - cy.get('ol.govuk-list > li:nth-child(3) > strong').should('not.exist') + cy.get('ol.govuk-list > li:nth-child(3) > span').should('not.exist') cy.get('#request-to-go-live-index-form > button').should('exist') cy.get('#request-to-go-live-index-form > button').should('contain', 'Start now') @@ -85,18 +85,17 @@ describe('Request to go live: index', () => { const requestToGoLivePageUrl = `/service/${serviceExternalId}/request-to-go-live` cy.visit(requestToGoLivePageUrl) - cy.get('h1').should('contain', 'Request a live account') cy.get('h1 + p').should('contain', 'Complete these steps to request a live account') cy.get('ol.govuk-list > li:nth-child(1)').should('exist') - cy.get('ol.govuk-list > li:nth-child(1) > strong').should('contain', 'In progress') + cy.get('ol.govuk-list > li:nth-child(1) > span').should('contain', 'In Progress') cy.get('ol.govuk-list > li:nth-child(2)').should('exist') - cy.get('ol.govuk-list > li:nth-child(2) > strong').should('not.exist') + cy.get('ol.govuk-list > li:nth-child(2) > span').should('not.exist') cy.get('ol.govuk-list > li:nth-child(3)').should('exist') - cy.get('ol.govuk-list > li:nth-child(3) > strong').should('not.exist') + cy.get('ol.govuk-list > li:nth-child(3) > span').should('not.exist') cy.get('#request-to-go-live-index-form > button').should('exist') cy.get('#request-to-go-live-index-form > button').should('contain', 'Continue') @@ -118,13 +117,13 @@ describe('Request to go live: index', () => { cy.visit(requestToGoLivePageUrl) cy.get('ol.govuk-list > li:nth-child(1)').should('exist') - cy.get('ol.govuk-list > li:nth-child(1) > strong').should('contain', 'Completed') + cy.get('ol.govuk-list > li:nth-child(1) > span').should('contain', 'Completed') cy.get('ol.govuk-list > li:nth-child(2)').should('exist') - cy.get('ol.govuk-list > li:nth-child(2) > strong').should('not.exist') + cy.get('ol.govuk-list > li:nth-child(2) > span').should('not.exist') cy.get('ol.govuk-list > li:nth-child(3)').should('exist') - cy.get('ol.govuk-list > li:nth-child(3) > strong').should('not.exist') + cy.get('ol.govuk-list > li:nth-child(3) > span').should('not.exist') cy.get('#request-to-go-live-index-form > button').should('exist') cy.get('#request-to-go-live-index-form > button').should('contain', 'Continue') @@ -145,15 +144,14 @@ describe('Request to go live: index', () => { const requestToGoLivePageUrl = `/service/${serviceExternalId}/request-to-go-live` cy.visit(requestToGoLivePageUrl) - cy.get('ol.govuk-list > li:nth-child(1)').should('exist') - cy.get('ol.govuk-list > li:nth-child(1) > strong').should('contain', 'Completed') + cy.get('ol.govuk-list > li:nth-child(1) > span').should('contain', 'Completed') cy.get('ol.govuk-list > li:nth-child(2)').should('exist') - cy.get('ol.govuk-list > li:nth-child(2) > strong').should('contain', 'Completed') + cy.get('ol.govuk-list > li:nth-child(2) > span').should('contain', 'Completed') cy.get('ol.govuk-list > li:nth-child(3)').should('exist') - cy.get('ol.govuk-list > li:nth-child(3) > strong').should('not.exist') + cy.get('ol.govuk-list > li:nth-child(3) > span').should('not.exist') cy.get('#request-to-go-live-index-form > button').should('exist') cy.get('#request-to-go-live-index-form > button').should('contain', 'Continue') @@ -193,13 +191,13 @@ describe('Request to go live: index', () => { cy.get('h1 + p').should('contain', 'Complete these steps to request a live account') cy.get('ol.govuk-list > li:nth-child(1)').should('exist') - cy.get('ol.govuk-list > li:nth-child(1) > strong').should('contain', 'Completed') + cy.get('ol.govuk-list > li:nth-child(1) > span').should('contain', 'Completed') cy.get('ol.govuk-list > li:nth-child(2)').should('exist') - cy.get('ol.govuk-list > li:nth-child(2) > strong').should('contain', 'Completed') + cy.get('ol.govuk-list > li:nth-child(2) > span').should('contain', 'Completed') cy.get('ol.govuk-list > li:nth-child(3)').should('exist') - cy.get('ol.govuk-list > li:nth-child(3) > strong').should('not.exist') + cy.get('ol.govuk-list > li:nth-child(3) > span').should('not.exist') cy.get('#request-to-go-live-index-form > button').should('exist') cy.get('#request-to-go-live-index-form > button').should('contain', 'Continue') @@ -294,13 +292,13 @@ describe('Request to go live: index', () => { cy.get('.next-steps-panel').should('not.exist') cy.get('ol.govuk-list > li:nth-child(1)').should('exist') - cy.get('ol.govuk-list > li:nth-child(1) > strong').should('contain', 'Completed') + cy.get('ol.govuk-list > li:nth-child(1) > span').should('contain', 'Completed') cy.get('ol.govuk-list > li:nth-child(2)').should('exist') - cy.get('ol.govuk-list > li:nth-child(2) > strong').should('contain', 'Completed') + cy.get('ol.govuk-list > li:nth-child(2) > span').should('contain', 'Completed') cy.get('ol.govuk-list > li:nth-child(3)').should('exist') - cy.get('ol.govuk-list > li:nth-child(3) > strong').should('contain', 'Completed') + cy.get('ol.govuk-list > li:nth-child(3) > span').should('contain', 'Completed') cy.get('#request-to-go-live-index-form > button').should('not.exist') }) diff --git a/test/cypress/integration/settings/switch-psp.cy.js b/test/cypress/integration/settings/switch-psp.cy.js index 26cad168ac..d3627c8df5 100644 --- a/test/cypress/integration/settings/switch-psp.cy.js +++ b/test/cypress/integration/settings/switch-psp.cy.js @@ -113,11 +113,11 @@ describe('Switch PSP settings page', () => { .within(() => { cy.get('.app-task-list__item').should('have.length', 3) cy.get('.app-task-list__item').eq(0).should('contain', 'Link your Worldpay account with GOV.UK Pay') - .find('.app-task-list__tag').should('have.text', 'Not started') + .find('.app-task-list__tag').should('have.text', 'not started') cy.get('.app-task-list__item').eq(1).should('contain', 'Provide your Worldpay 3DS Flex credentials') - .find('.app-task-list__tag').should('have.text', 'Not started') + .find('.app-task-list__tag').should('have.text', 'not started') cy.get('.app-task-list__item').eq(2).should('contain', 'Make a live payment to test your Worldpay PSP') - .find('.app-task-list__tag').should('have.text', 'Cannot start yet') + .find('.app-task-list__tag').should('have.text', 'cannot start yet') }) cy.get('button').contains('Switch to Worldpay').should('have.disabled') }) @@ -206,13 +206,12 @@ describe('Switch PSP settings page', () => { ]) cy.visit(`/account/${gatewayAccountExternalId}/switch-psp`) - cy.get('.app-task-list__item').eq(0).should('contain', 'Link your Worldpay account with GOV.UK Pay') - .find('.app-task-list__tag').should('have.text', 'Completed') + .find('.app-task-list__tag').should('have.text', 'completed') cy.get('.app-task-list__item').eq(1).should('contain', 'Provide your Worldpay 3DS Flex credentials') - .find('.app-task-list__tag').should('have.text', 'Completed') + .find('.app-task-list__tag').should('have.text', 'completed') cy.get('.app-task-list__item').eq(2).should('contain', 'Make a live payment to test your Worldpay PSP') - .find('.app-task-list__tag').should('have.text', 'Not started') + .find('.app-task-list__tag').should('have.text', 'not started') }) }) @@ -236,9 +235,9 @@ describe('Switch PSP settings page', () => { .within(() => { cy.get('.app-task-list__item').should('have.length', 2) cy.get('.app-task-list__item').eq(0).should('contain', 'Link your Worldpay account with GOV.UK Pay') - .find('.app-task-list__tag').should('have.text', 'Not started') + .find('.app-task-list__tag').should('have.text', 'not started') cy.get('.app-task-list__item').eq(1).should('contain', 'Make a live payment to test your Worldpay PSP') - .find('.app-task-list__tag').should('have.text', 'Cannot start yet') + .find('.app-task-list__tag').should('have.text', 'cannot start yet') }) cy.get('button').contains('Switch to Worldpay').should('have.disabled') }) @@ -264,11 +263,10 @@ describe('Switch PSP settings page', () => { it('should should the task list with the link Worldpay account step complete', () => { cy.visit(`/account/${gatewayAccountExternalId}/switch-psp`) - cy.get('.app-task-list__item').eq(0).should('contain', 'Link your Worldpay account with GOV.UK Pay') - .find('.app-task-list__tag').should('have.text', 'Completed') + .find('.app-task-list__tag').should('have.text', 'completed') cy.get('.app-task-list__item').eq(1).should('contain', 'Make a live payment to test your Worldpay PSP') - .find('.app-task-list__tag').should('have.text', 'Not started') + .find('.app-task-list__tag').should('have.text', 'not started') }) }) }) @@ -470,23 +468,23 @@ describe('Switch PSP settings page', () => { cy.visit(`/account/${gatewayAccountExternalId}/switch-psp`) cy.get('.govuk-heading-l').should('contain', 'Switch payment service provider (PSP)') - cy.get('strong[id="Add organisation website address-status"]').should('contain', 'Not started') + cy.get('strong[id="Add organisation website address-status"]').should('contain', 'not started') cy.get('span').contains('Add organisation website address').should('exist') - cy.get('strong[id="Provide your bank details-status"]').should('contain', 'Not started') + cy.get('strong[id="Provide your bank details-status"]').should('contain', 'not started') cy.get('span').contains('Provide your bank details').should('exist') - cy.get('strong[id="Provide details about your responsible person-status"]').should('contain', 'Not started') + cy.get('strong[id="Provide details about your responsible person-status"]').should('contain', 'not started') cy.get('span').contains('Provide details about your responsible person').should('exist') - cy.get('strong[id="Provide details about the director of your organisation-status"]').should('contain', 'Not started') + cy.get('strong[id="Provide details about the director of your organisation-status"]').should('contain', 'not started') cy.get('span').contains('Provide details about the director of your organisation').should('exist') - cy.get('strong[id="Provide your organisation’s VAT number-status"]').should('contain', 'Not started') + cy.get('strong[id="Provide your organisation’s VAT number-status"]').should('contain', 'not started') cy.get('span').contains('Provide your organisation’s VAT number').should('exist') - cy.get('strong[id="Provide your Company registration number-status"]').should('contain', 'Not started') + cy.get('strong[id="Provide your Company registration number-status"]').should('contain', 'not started') cy.get('span').contains('Provide your Company registration number').should('exist') - cy.get('strong[id="Confirm your organisation details-status"]').should('contain', 'Not started') + cy.get('strong[id="Confirm your organisation details-status"]').should('contain', 'not started') cy.get('span').contains('Confirm your organisation details').should('exist') - cy.get('strong[id="Upload a government entity document-status"]').should('contain', 'Not started') + cy.get('strong[id="Upload a government entity document-status"]').should('contain', 'not started') cy.get('span').contains('Upload a government entity document').should('exist') - cy.get('strong[id="Make a live payment to test your Stripe PSP-status"]').should('contain', 'Cannot start yet') + cy.get('strong[id="Make a live payment to test your Stripe PSP-status"]').should('contain', 'cannot start yet') cy.get('span').contains('Make a live payment to test your Stripe PSP').should('exist') }) }) @@ -562,16 +560,15 @@ describe('Switch PSP settings page', () => { it('all steps are complete', () => { cy.visit(`/account/${gatewayAccountExternalId}/switch-psp`) - - cy.get('strong[id="Add organisation website address-status"]').should('contain', 'Completed') - cy.get('strong[id="Provide your bank details-status"]').should('contain', 'Completed') - cy.get('strong[id="Provide details about your responsible person-status"]').should('contain', 'Completed') - cy.get('strong[id="Provide details about the director of your organisation-status"]').should('contain', 'Completed') - cy.get('strong[id="Provide your organisation’s VAT number-status"]').should('contain', 'Completed') - cy.get('strong[id="Provide your Company registration number-status"]').should('contain', 'Completed') - cy.get('strong[id="Confirm your organisation details-status"]').should('contain', 'Completed') - cy.get('strong[id="Upload a government entity document-status"]').should('contain', 'Completed') - cy.get('strong[id="Make a live payment to test your Stripe PSP-status"]').should('contain', 'Completed') + cy.get('strong[id="Add organisation website address-status"]').should('contain', 'completed') + cy.get('strong[id="Provide your bank details-status"]').should('contain', 'completed') + cy.get('strong[id="Provide details about your responsible person-status"]').should('contain', 'completed') + cy.get('strong[id="Provide details about the director of your organisation-status"]').should('contain', 'completed') + cy.get('strong[id="Provide your organisation’s VAT number-status"]').should('contain', 'completed') + cy.get('strong[id="Provide your Company registration number-status"]').should('contain', 'completed') + cy.get('strong[id="Confirm your organisation details-status"]').should('contain', 'completed') + cy.get('strong[id="Upload a government entity document-status"]').should('contain', 'completed') + cy.get('strong[id="Make a live payment to test your Stripe PSP-status"]').should('contain', 'completed') cy.get('button').contains('Switch to Stripe').should('not.be.disabled') }) diff --git a/test/cypress/integration/settings/your-psp-stripe-tasklist.cy.js b/test/cypress/integration/settings/your-psp-stripe-tasklist.cy.js index cb980aa892..e44aa60069 100644 --- a/test/cypress/integration/settings/your-psp-stripe-tasklist.cy.js +++ b/test/cypress/integration/settings/your-psp-stripe-tasklist.cy.js @@ -120,13 +120,13 @@ describe('Your PSP Stripe page', () => { cy.get('h2').should('contain', 'Information incomplete') cy.get('[data-cy="progress-indicator"]').should('contain', '2 out of 7 steps complete') - cy.get('strong[id="task-bank-details-status"]').should('contain', 'Complete') - cy.get('strong[id="task-sro-status"]').should('contain', 'Complete') - cy.get('strong[id="task-director-status"]').should('contain', 'Not started') - cy.get('strong[id="task-vatNumber-status"]').should('contain', 'Not started') - cy.get('strong[id="task-Company-number-status"]').should('contain', 'Not started') - cy.get('strong[id="task-checkorganisation-details-status"]').should('contain', 'Not started') - cy.get('strong[id="task-government-entity-document-status"]').should('contain', 'Cannot start yet') + cy.get('strong[id="task-bank-details-status"]').should('contain', 'complete') + cy.get('strong[id="task-sro-status"]').should('contain', 'complete') + cy.get('strong[id="task-director-status"]').should('contain', 'not started') + cy.get('strong[id="task-vatNumber-status"]').should('contain', 'not started') + cy.get('strong[id="task-Company-number-status"]').should('contain', 'not started') + cy.get('strong[id="task-checkorganisation-details-status"]').should('contain', 'not started') + cy.get('strong[id="task-government-entity-document-status"]').should('contain', 'cannot start yet') }) it('should show progress indicator and all completed tasks', () => { @@ -146,26 +146,26 @@ describe('Your PSP Stripe page', () => { cy.get('h2').should('contain', 'Information complete') cy.get('[data-cy="progress-indicator"]').should('contain', '7 out of 7 steps complete') - cy.get('strong[id="task-bank-details-status"]').should('contain', 'Complete') - cy.get('strong[id="task-sro-status"]').should('contain', 'Complete') - cy.get('strong[id="task-director-status"]').should('contain', 'Complete') - cy.get('strong[id="task-vatNumber-status"]').should('contain', 'Complete') - cy.get('strong[id="task-Company-number-status"]').should('contain', 'Complete') - cy.get('strong[id="task-checkorganisation-details-status"]').should('contain', 'Complete') - cy.get('strong[id="task-government-entity-document-status"]').should('contain', 'Complete') + cy.get('strong[id="task-bank-details-status"]').should('contain', 'complete') + cy.get('strong[id="task-sro-status"]').should('contain', 'complete') + cy.get('strong[id="task-director-status"]').should('contain', 'complete') + cy.get('strong[id="task-vatNumber-status"]').should('contain', 'complete') + cy.get('strong[id="task-Company-number-status"]').should('contain', 'complete') + cy.get('strong[id="task-checkorganisation-details-status"]').should('contain', 'complete') + cy.get('strong[id="task-government-entity-document-status"]').should('contain', 'complete') }) it('should autamatically show government document as cannot start yet and the rest of the tasks as not started', () => { setupYourPspStubs() cy.visit(`/account/${gatewayAccountExternalId}/your-psp/${credentialExternalId}`) - cy.get('strong[id="task-bank-details-status"]').should('contain', 'Not started') - cy.get('strong[id="task-sro-status"]').should('contain', 'Not started') - cy.get('strong[id="task-director-status"]').should('contain', 'Not started') - cy.get('strong[id="task-vatNumber-status"]').should('contain', 'Not started') - cy.get('strong[id="task-Company-number-status"]').should('contain', 'Not started') - cy.get('strong[id="task-checkorganisation-details-status"]').should('contain', 'Not started') - cy.get('strong[id="task-government-entity-document-status"]').should('contain', 'Cannot start yet') + cy.get('strong[id="task-bank-details-status"]').should('contain', 'not started') + cy.get('strong[id="task-sro-status"]').should('contain', 'not started') + cy.get('strong[id="task-director-status"]').should('contain', 'not started') + cy.get('strong[id="task-vatNumber-status"]').should('contain', 'not started') + cy.get('strong[id="task-Company-number-status"]').should('contain', 'not started') + cy.get('strong[id="task-checkorganisation-details-status"]').should('contain', 'not started') + cy.get('strong[id="task-government-entity-document-status"]').should('contain', 'cannot start yet') }) }) @@ -189,7 +189,7 @@ describe('Your PSP Stripe page', () => { }) cy.visit(`/account/${gatewayAccountExternalId}/your-psp/${credentialExternalId}`) - cy.get('strong[id="task-bank-details-status"]').should('contain', 'Complete') + cy.get('strong[id="task-bank-details-status"]').should('contain', 'complete') cy.get('[data-cy="task-bank-details"]').contains('Bank Details').should('not.have.attr', 'href') }) }) @@ -214,7 +214,7 @@ describe('Your PSP Stripe page', () => { cy.visit(`/account/${gatewayAccountExternalId}/your-psp/${credentialExternalId}`) cy.get('[data-cy="task-vatNumber"]').contains('VAT registration number').should('not.have.attr', 'href') - cy.get('strong[id="task-vatNumber-status"]').should('contain', 'Complete') + cy.get('strong[id="task-vatNumber-status"]').should('contain', 'complete') }) }) @@ -238,7 +238,7 @@ describe('Your PSP Stripe page', () => { cy.visit(`/account/${gatewayAccountExternalId}/your-psp/${credentialExternalId}`) cy.get('[data-cy="task-Company-number"]').contains('Company registration number').should('not.have.attr', 'href') - cy.get('strong[id="task-Company-number-status"]').should('contain', 'Complete') + cy.get('strong[id="task-Company-number-status"]').should('contain', 'complete') }) }) @@ -265,7 +265,7 @@ describe('Your PSP Stripe page', () => { }) cy.visit(`/account/${gatewayAccountExternalId}/your-psp/${credentialExternalId}`) - cy.get('strong[id="task-director-status"]').should('contain', 'Complete') + cy.get('strong[id="task-director-status"]').should('contain', 'complete') cy.get('[data-cy="task-director"]').contains('Service director').should('not.have.attr', 'href') }) }) @@ -298,7 +298,7 @@ describe('Your PSP Stripe page', () => { cy.visit(`/account/${gatewayAccountExternalId}/your-psp/${credentialExternalId}`) cy.get('[data-cy="task-sro"]').contains('Responsible person').should('not.have.attr', 'href') - cy.get('strong[id="task-sro-status"]').should('contain', 'Complete') + cy.get('strong[id="task-sro-status"]').should('contain', 'complete') }) }) @@ -321,7 +321,7 @@ describe('Your PSP Stripe page', () => { cy.visit(`/account/${gatewayAccountExternalId}/your-psp/${credentialExternalId}`) cy.get('[data-cy="task-checkorganisation-details"]').contains('Confirm your organisation’s name and address match your government entity document').should('not.have.attr', 'href') - cy.get('strong[id="task-checkorganisation-details-status"]').should('contain', 'Complete') + cy.get('strong[id="task-checkorganisation-details-status"]').should('contain', 'complete') }) }) diff --git a/test/test-helpers/html-assertions.js b/test/test-helpers/html-assertions.js index 0a8a357afb..b6585451e0 100644 --- a/test/test-helpers/html-assertions.js +++ b/test/test-helpers/html-assertions.js @@ -11,7 +11,7 @@ const formatPSPname = require('../../app/utils/format-PSP-name') const formatAccountPathsFor = require('../../app/utils/format-account-paths-for') const environment = nunjucks.configure([ - './node_modules/govuk-frontend/dist/', + './node_modules/govuk-frontend/', './app/views', './govuk_modules/govuk_template/views/layouts' ], {