File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed
Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ export class TemplateMgmtCreateEmailPage extends TemplateMgmtBasePage {
1515
1616 public readonly namingYourTemplate : Locator ;
1717
18+ public readonly goBackLink : Locator ;
19+
1820 public readonly messageFormatting : TemplateMgmtMessageFormatting ;
1921
2022 constructor ( page : Page ) {
@@ -29,6 +31,10 @@ export class TemplateMgmtCreateEmailPage extends TemplateMgmtBasePage {
2931 this . namingYourTemplate = page . locator (
3032 '[data-testid="how-to-name-your-template"]'
3133 ) ;
34+ this . goBackLink = page
35+ . locator ( '.nhsuk-back-link__link' )
36+ . and ( page . getByText ( 'Back to choose a template type' ) ) ;
37+
3238 this . messageFormatting = new TemplateMgmtMessageFormatting ( page ) ;
3339 }
3440
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ export class TemplateMgmtCreateNhsAppPage extends TemplateMgmtBasePage {
1515
1616 public readonly characterCountText : Locator ;
1717
18+ public readonly goBackLink : Locator ;
19+
1820 public readonly messageFormatting : TemplateMgmtMessageFormatting ;
1921
2022 constructor ( page : Page ) {
@@ -29,6 +31,9 @@ export class TemplateMgmtCreateNhsAppPage extends TemplateMgmtBasePage {
2931 '[data-testid="how-to-name-your-template"]'
3032 ) ;
3133 this . characterCountText = page . locator ( '[id="character-count"]' ) ;
34+ this . goBackLink = page
35+ . locator ( '.nhsuk-back-link__link' )
36+ . and ( page . getByText ( 'Back to choose a template type' ) ) ;
3237 this . messageFormatting = new TemplateMgmtMessageFormatting ( page ) ;
3338 }
3439
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ export class TemplateMgmtCreateSmsPage extends TemplateMgmtBasePage {
1717
1818 public readonly characterCountText : Locator ;
1919
20+ public readonly goBackLink : Locator ;
21+
2022 public readonly messageFormatting : TemplateMgmtMessageFormatting ;
2123
2224 constructor ( page : Page ) {
@@ -32,6 +34,10 @@ export class TemplateMgmtCreateSmsPage extends TemplateMgmtBasePage {
3234 ) ;
3335 this . pricingLink = page . locator ( '[data-testid="sms-pricing-link"]' ) ;
3436 this . characterCountText = page . locator ( '[id="character-count"]' ) ;
37+ this . goBackLink = page
38+ . locator ( '.nhsuk-back-link__link' )
39+ . and ( page . getByText ( 'Back to choose a template type' ) ) ;
40+
3541 this . messageFormatting = new TemplateMgmtMessageFormatting ( page ) ;
3642 }
3743
You can’t perform that action at this time.
0 commit comments