mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-05-10 16:15:23 -04:00
29 lines
895 B
TypeScript
29 lines
895 B
TypeScript
import {expect, Locator, Page} from '@playwright/test'
|
|
|
|
export class CompatibilityPage {
|
|
private readonly answeredQuestionsTab: Locator
|
|
private readonly remaningQuestionsTab: Locator
|
|
private readonly skippedQuestionsTab: Locator
|
|
|
|
constructor(public readonly page: Page) {
|
|
this.answeredQuestionsTab = page.getByText('Answered')
|
|
this.remaningQuestionsTab = page.getByText('To Answer')
|
|
this.skippedQuestionsTab = page.getByText('Skipped')
|
|
}
|
|
|
|
async clickAnsweredQuestionsTab() {
|
|
await expect(this.answeredQuestionsTab).toBeVisible()
|
|
await this.answeredQuestionsTab.click()
|
|
}
|
|
|
|
async clickRemainingQuestionsTab() {
|
|
await expect(this.remaningQuestionsTab).toBeVisible()
|
|
await this.remaningQuestionsTab.click()
|
|
}
|
|
|
|
async clickSkippedQuestionsTab() {
|
|
await expect(this.skippedQuestionsTab).toBeVisible()
|
|
await this.skippedQuestionsTab.click()
|
|
}
|
|
}
|