In scenarios that reach the order confirmation page, the query string includes more than the issPageValue, whiche was breaking validateURL
19 lines
No EOL
515 B
TypeScript
19 lines
No EOL
515 B
TypeScript
import { expect, type Locator, type Page } from '@playwright/test';
|
|
import { BasePage } from './BasePage';
|
|
|
|
export class TpaConfirmationPage extends BasePage {
|
|
readonly page: Page;
|
|
readonly successMessage: Locator;
|
|
readonly issPageValue = 'tpa-confirmation';
|
|
|
|
constructor(page: Page) {
|
|
super(page);
|
|
this.page = page;
|
|
this.successMessage = page.getByText('Success');
|
|
}
|
|
|
|
async validateSuccessMessage() {
|
|
await expect(this.successMessage).toBeVisible();
|
|
}
|
|
|
|
} |