DigitalConsumer.ISS/playwright-tests/pages/MoldingQuestionsPage.ts
Alex Humphries 49c951fe25 Update validateURL to account for variations in query string
In scenarios that reach the order confirmation page, the query string
includes more than the issPageValue, whiche was breaking validateURL
2025-03-07 11:47:06 -05:00

18 lines
No EOL
500 B
TypeScript

import { expect, type Locator, type Page } from '@playwright/test';
import { BasePage } from './BasePage';
export class MoldingQuestionsPage extends BasePage {
readonly page: Page;
issPageValue = 'part-questions';
readonly yesButton: Locator;
constructor(page: Page) {
super(page);
this.page = page;
this.yesButton = page.locator('label').filter({ hasText: 'Yes' }).locator('div');
}
async answerYes() {
await this.yesButton.click();
}
}