tldraw/apps/examples/e2e/tests/fixtures/menus/StylePanel.ts

22 lines
395 B
TypeScript
Raw Normal View History

import { Page } from '@playwright/test'
export class StylePanel {
readonly stylesArray: string[]
constructor(public readonly page: Page) {
this.page = page
this.stylesArray = [
'style.color',
'style.opacity',
'style.fill',
'style.dash',
'style.size',
'style.font',
'style.align',
]
}
getElement() {
return this.page.locator('[data-testid="style.panel"]')
}
}