-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh-147: Add GamePage in e2e, use title to navigate
- Loading branch information
1 parent
12009c2
commit f3627be
Showing
5 changed files
with
30 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Page } from './Page' | ||
import { SelectGamePage } from './SelectGamePage' | ||
import { DashboardPage } from './DashboardPage' | ||
|
||
export class GamePage extends Page { | ||
constructor(protected readonly gameName: string, path?: string) { | ||
super(`/${gameName}` + path ? `/${path}` : '') | ||
} | ||
|
||
goToGameSelection(): SelectGamePage { | ||
this.getHeader().get('#logo').click() | ||
return new SelectGamePage() | ||
} | ||
goToDashboard(): DashboardPage { | ||
this.getHeader().get('#title').click() | ||
return new DashboardPage(this.gameName) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters