e2e-tests/web/test/pageobjects/categories.page.ts
import Page from './page.js'
export class CategoriesPage extends Page {
private findCategory(category: string) {
return $(`*=${category}`)
}
public async openCategory(category: string): Promise<void> {
return (await this.findCategory(category)).click()
}
}
export default new CategoriesPage()