Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
cypress-refactoring (#794)
Browse files Browse the repository at this point in the history
  • Loading branch information
FahadDarw authored Jul 9, 2024
1 parent 2a6cc8f commit 4c1f57d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<datesummary value="@Model.PreviousAdvisoryBoardDate"></datesummary>
</dd>
<dd class="govuk-summary-list__actions">
<a class="govuk-link" asp-page="/Projects/TransferDates/PreviousAdvisoryBoard" data-test="ab-date"
<a class="govuk-link" asp-page="/Projects/TransferDates/PreviousAdvisoryBoard" data-test="previous-ab-date"
asp-route-urn="@Model.Urn" asp-route-returnToPreview="@(Model.ReturnToPreview ? "true" : null)">
Change<span class="govuk-visually-hidden"> Previous advisory board</span>
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 4c1f57d

Please sign in to comment.