platform/qms-tests/sanity/tests/model/documents/document-history-page.ts
2024-07-13 22:23:11 +07:00

16 lines
460 B
TypeScript

import { expect, type Page } from '@playwright/test'
import { DocumentCommonPage } from './document-common-page'
export class DocumentHistoryPage extends DocumentCommonPage {
readonly page: Page
constructor (page: Page) {
super(page)
this.page = page
}
async checkHistoryEventExist (eventDescription: string): Promise<void> {
await expect(this.page.locator('div.root div.description', { hasText: eventDescription })).toBeVisible()
}
}