mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 02:51:54 +03:00
16 lines
460 B
TypeScript
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()
|
|
}
|
|
}
|