Skip to content

Commit

Permalink
Update login form steps to use 'Logout' instead of 'Login'
Browse files Browse the repository at this point in the history
  • Loading branch information
UO285267 committed Apr 27, 2024
1 parent 0714d30 commit bd281ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/e2e/steps/login-form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ defineFeature(feature, test => {
await expect(page).toFill('input[name="password"]', password);
await expect(page).toFill('input[name="passwordRepeat"]', password);
await expect(page).toClick("button", { text: "Registrarse" });
await page.waitForSelector('a.nav__link', { text: 'Login', visible: true });
await expect(page).toClick('a.nav__link', { text: 'Login' });
await page.waitForSelector('a.nav__link', { text: 'Logout', visible: true });
await expect(page).toClick('a.nav__link', { text: 'Logout' });
});

test('The user is registered in the site', ({ given, when, then }) => {
Expand Down

0 comments on commit bd281ea

Please sign in to comment.