Skip to content

Commit

Permalink
Added page object methods back
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomationPanda committed Jul 26, 2023
1 parent 558ca9b commit ea9779f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/pages/my-boards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ export class MyBoardsPage {
this.myBoardsTitle = page.getByText('My Boards');
}

async load() {
await this.page.goto('http://localhost:3000/');
}

async openBoard(boardName: string) {
await this.page.getByText(boardName).click();
}

async expectLoaded(boardNames: string[]) {
await expect(this.myBoardsTitle).toBeVisible();

Expand Down

0 comments on commit ea9779f

Please sign in to comment.