Skip to content

Commit

Permalink
Fix email scenarios (#62)
Browse files Browse the repository at this point in the history
In [PR #57](#57) we added our first email scenarios. Since then we've [switched the TCM to GOV.UK Notify](DEFRA/sroc-tcm-admin#546) and [updated all the project dependencies](#61).

We believe for these reasons a couple of the email scenarios have stopped working. This change fixes them.
  • Loading branch information
Cruikshanks authored Mar 23, 2022
1 parent dc0b5a6 commit cf48d75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/integration/common/email.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ And('I have forgotten my password', () => {

When('I follow the link to unlock my account', () => {
cy.get('@user').then((user) => {
LastEmailPage.lastEmail([user.email, 'Your account has been locked'])
LastEmailPage.lastEmail([`Hello ${user.firstName} ${user.lastName}`, 'account has been locked'])

cy.get('@lastEmail').then((lastEmail) => {
const link = LastEmailPage.extractUnlockAccountLink(lastEmail.last_email.body)
Expand Down
2 changes: 1 addition & 1 deletion cypress/pages/accept_invite_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class AcceptInvitePage {
}

static mainHeading () {
return cy.get('h1')
return cy.get('h2')
}

static password () {
Expand Down

0 comments on commit cf48d75

Please sign in to comment.