Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-qg committed Apr 29, 2024
1 parent b1e7e66 commit 60a7573
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions webapp/e2e/steps/register-form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,23 @@ defineFeature(feature, test => {

let username;
let password;
let name;
let surname;

given('An unregistered user', async () => {
username = "pablo"
username = name = "pablo"
surname = "gonzález"
password = "pabloasw"
await expect(page).toClick("p", { text: "Don't have an account? Register here." });
});

when('I fill the data in the form and press submit', async () => {
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).toFill('input[name="passwordConfirm"]', password);
await expect(page).toFill('input[name="name"]', name);
await expect(page).toFill('input[name="surname"]', surname);
await expect(page).toClick('button', { text: 'Añadir' })
});

then('A confirmation message should be shown in the screen', async () => {
Expand Down

0 comments on commit 60a7573

Please sign in to comment.