From d809cd56070ab44b8681ac4293b815184af74ee8 Mon Sep 17 00:00:00 2001 From: John Pratt Date: Thu, 31 Oct 2024 14:11:14 -0600 Subject: [PATCH] MWPW-161293 [MEP] add some selectors for the text blocks (#3077) add some selectors for the text and intro text blocks Co-authored-by: John Pratt --- nala/blocks/text/text.page.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nala/blocks/text/text.page.js b/nala/blocks/text/text.page.js index ee70ba3b4f..e9ab0986f6 100644 --- a/nala/blocks/text/text.page.js +++ b/nala/blocks/text/text.page.js @@ -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'); @@ -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');