digitalfabrik/integreat-app

View on GitHub
e2e-tests/web/test/pageobjects/categories.page.ts

Summary

Maintainability
A
0 mins
Test Coverage
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()