Skip to content

Commit

Permalink
Update game-steps.js
Browse files Browse the repository at this point in the history
  • Loading branch information
uo283182 authored Apr 27, 2024
1 parent 1952593 commit 6be5047
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions webapp/e2e/steps/game-steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,13 @@ defineFeature(feature, test => {
let password;

given('An authenticated user', async () => {
username = "game1";
username = "game2";
password = "game";
await expect(page).toClick('button', { text: 'Login' });
await expect(page).toClick('button', { text: 'SignUp' });
await expect(page).toFill('input[name="username"]', username);
await expect(page).toFill('input[name="password"]', password);
await expect(page).toClick('button', { text: 'Add User' });
await expect(page).toClick('a', { text: 'Already have an account? Login here.' });
await expect(page).toFill('input[name="username"]', username);
await expect(page).toFill('input[name="password"]', password);
await expect(page).toClick('button', { text: 'Login' });
Expand Down

0 comments on commit 6be5047

Please sign in to comment.