kopia lustrzana https://github.com/Tldraw/Tldraw
22 wiersze
438 B
TypeScript
22 wiersze
438 B
TypeScript
import { wd } from './app'
|
|
|
|
export async function menu(path = []) {
|
|
await $(wd('main.menu')).click()
|
|
|
|
for await (const item of path) {
|
|
await $(wd(`menu-item.${item}`)).click()
|
|
}
|
|
}
|
|
|
|
export async function actionMenu(path = []) {
|
|
await $(wd('main.action-menu')).click()
|
|
|
|
for await (const item of path) {
|
|
await $(wd(`menu-item.${item}`)).click()
|
|
}
|
|
}
|
|
|
|
export async function click(key: string) {
|
|
await $(wd(`main.${key}`)).click()
|
|
}
|