-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
54 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { test, expect, request } from "@playwright/test"; | ||
|
||
import fakePlayer from "./fake-player.mjs"; | ||
|
||
const url = "http://localhost:8080"; | ||
|
||
//test.beforeAll(async ({ request }) => { | ||
// // Create a new repository | ||
// const response = await fakePlayer.clear(request, url); | ||
// expect(response.ok()).toBeTruthy(); | ||
//}); | ||
|
||
// We just check the login page is working OK | ||
test('showLoginOptions', async ({ page }) => { | ||
await page.goto(url); | ||
await fakePlayer.showLoginOptions(page); | ||
}); | ||
|
||
test('login', async ({ page }) => { | ||
await page.goto(url); | ||
await fakePlayer.login(page); | ||
}); | ||
|
||
// We can not login automatically without fakeUser | ||
//test("play-optimization", async ({ page }) => { | ||
// await page.goto(url); | ||
// await fakePlayer.playOptimization(page); | ||
//}); |
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
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