mirror of
https://github.com/hcengineering/platform.git
synced 2025-03-22 07:28:39 +00:00
14 lines
429 B
TypeScript
14 lines
429 B
TypeScript
import { type Locator, type Page } from '@playwright/test'
|
|
|
|
export class NavigationMenuPage {
|
|
readonly page: Page
|
|
readonly buttonTemplates: Locator
|
|
readonly buttonCategories: Locator
|
|
|
|
constructor (page: Page) {
|
|
this.page = page
|
|
this.buttonTemplates = page.locator('a[href$="templates"]', { hasText: 'Templates' })
|
|
this.buttonCategories = page.locator('a[href$="categories"]', { hasText: 'Categories' })
|
|
}
|
|
}
|