Skip to content

Commit

Permalink
MWPW-161293 [MEP] add some selectors for the text blocks (#3077)
Browse files Browse the repository at this point in the history
add some selectors for the text and intro text blocks

Co-authored-by: John Pratt <jpratt@adobe.com>
  • Loading branch information
jpratt2 and John Pratt authored Oct 31, 2024
1 parent 8f0adc1 commit d809cd5
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 d809cd5

Please sign in to comment.