mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-29 03:21:13 +00:00
* feat(tests): added page-object model example. Refactor login test to page-object model. Added a new test channel.spec.ts --------- Signed-off-by: Alex Velichko <nestor_007@mail.ru>
14 lines
384 B
TypeScript
14 lines
384 B
TypeScript
import { type Locator, type Page } from '@playwright/test'
|
|
|
|
export class LeftSideMenuPage {
|
|
readonly page: Page
|
|
readonly buttonChunter: Locator
|
|
readonly buttonContacts: Locator
|
|
|
|
constructor (page: Page) {
|
|
this.page = page
|
|
this.buttonChunter = page.locator('button[id$="ApplicationLabelChunter"]')
|
|
this.buttonContacts = page.locator('button[id$="Contacts"]')
|
|
}
|
|
}
|