Skip to content

Commit

Permalink
add some selectors for the text and intro text blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
John Pratt committed Oct 21, 2024
1 parent ec48f3c commit 3d49e80
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nala/blocks/text/text.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ export default class Text {
this.page = page;
// text locators
this.text = page.locator('.text').nth(nth);
this.textIntro = this.page.locator('.text.intro');
this.textBlocks = page.locator('.text');
this.textIntro = this.page.locator('.text.intro').nth(nth);
this.textIntroBlocks = this.page.locator('.text.intro');
this.textFullWidth = this.page.locator('.text.full-width');
this.textFullWidthLarge = this.page.locator('.text.full-width.large');
this.textLongFormLarge = this.page.locator('.text.long-form');
Expand All @@ -17,7 +19,9 @@ export default class Text {
this.legalDetail = page.locator('.foreground');

this.headline = this.text.locator('#text');
this.headlineAlt = this.text.locator('h3');
this.introHeadline = this.text.locator('#text-intro');
this.introHeadlineAlt = this.textIntro.locator('h2');
this.fullWidthHeadline = this.text.locator('#text-full-width');
this.fullWidthLargeHeadline = this.text.locator('#text-full-width-large');
this.longFormLargeHeadline = this.text.locator('#text-long-form-large');
Expand Down

0 comments on commit 3d49e80

Please sign in to comment.