From 4c1f57de8aeb62d7e5fb1183b1d8ef7b2c47e7c6 Mon Sep 17 00:00:00 2001
From: Fahad_Darwish_Nimble <101198418+FahadDarw@users.noreply.github.com>
Date: Tue, 9 Jul 2024 14:34:09 +0100
Subject: [PATCH] cypress-refactoring (#794)
---
.../Pages/Shared/_TransferDatesSummary.cshtml | 2 +-
.../cypress/pages/newTransferProjectWithDecisions.ts | 2 +-
.../cypress/pages/trustInformationProjectDates.ts | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Dfe.PrepareTransfers.Web/Pages/Shared/_TransferDatesSummary.cshtml b/Dfe.PrepareTransfers.Web/Pages/Shared/_TransferDatesSummary.cshtml
index e98ca18c5..452bfbddc 100644
--- a/Dfe.PrepareTransfers.Web/Pages/Shared/_TransferDatesSummary.cshtml
+++ b/Dfe.PrepareTransfers.Web/Pages/Shared/_TransferDatesSummary.cshtml
@@ -25,7 +25,7 @@
-
Change Previous advisory board
diff --git a/end-to-end-tests/cypress/pages/newTransferProjectWithDecisions.ts b/end-to-end-tests/cypress/pages/newTransferProjectWithDecisions.ts
index 4aaa1aaec..744b74415 100644
--- a/end-to-end-tests/cypress/pages/newTransferProjectWithDecisions.ts
+++ b/end-to-end-tests/cypress/pages/newTransferProjectWithDecisions.ts
@@ -83,7 +83,7 @@ export class NewTransferProjectWithDecisions {
public verifyDecisionDetails(): this {
cy.contains('Record a decision').click();
cy.get('#decision').should('contain', 'Deferred');
- cy.get('#decision-made-by').should('contain', 'Deputy Director');
+ cy.get('#decision-made-by').should('contain', 'Grade 6');
cy.get('#deferred-reasons').should('contain', 'Performance concerns:');
cy.get('#deferred-reasons').should('contain', 'Cypress Test');
cy.get('#decision-date').should('contain', '12 December 2023');
diff --git a/end-to-end-tests/cypress/pages/trustInformationProjectDates.ts b/end-to-end-tests/cypress/pages/trustInformationProjectDates.ts
index ab05e537a..58844be1e 100644
--- a/end-to-end-tests/cypress/pages/trustInformationProjectDates.ts
+++ b/end-to-end-tests/cypress/pages/trustInformationProjectDates.ts
@@ -28,8 +28,8 @@ class TrustInformationProjectDatesPage {
cy.get('button').contains('Save and continue').click()
// Check the table has been updated
- cy.get('dd').eq(1).should('contain.text', 'Approve')
- cy.get('dd').eq(3).should('contain.text', 'Chris Sherlock')
+ cy.get('dd').eq(0).should('contain.text', 'Approve')
+ cy.get('dd').eq(2).should('contain.text', 'Chris Sherlock')
return this
}