From 3d49e804b70b41e3299019ce29a5a3cb4afaf782 Mon Sep 17 00:00:00 2001 From: John Pratt Date: Mon, 21 Oct 2024 12:04:11 -0600 Subject: [PATCH] add some selectors for the text and intro text blocks --- 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');