platform/tests/sanity/tests/model/left-side-menu-page.ts
Alex Velichko 0d1ba6a28a
feat(tests): added page-object model example. Refactor login test to page-object model. Added a new test channel.spec.ts (#3847)
* 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>
2023-10-17 12:58:56 +03:00

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"]')
}
}