Skip to content

Commit

Permalink
small fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
pelazas committed May 6, 2024
1 parent 2dc4b38 commit b097ad0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webapp/e2e/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ module.exports = {
testTimeout: 30000,
setupFilesAfterEnv: ["expect-puppeteer"],
verbose: true,
testURL: "http://localhost/",
//testURL: "http://localhost/",
}
4 changes: 2 additions & 2 deletions webapp/e2e/steps/register-form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ defineFeature(feature, test => {
username = "conoceryvenceruser"
password = "conoceryvencerpass"
await page.waitForSelector('button')
await page.click("button", {id: "registerButton"});
await page.click("button", {text: "REGISTRARSE"});
});

when('I fill the data in the form and press submit', async () => {
await page.type('input[name="username"]', username);
await page.type('input[name="password"]', password);
await page.waitForSelector('button')
await page.click('button', { text: 'Registrarse' })
await page.click('button', { text: 'REGISTRARSE' })
});

then('Should be inside the game route', async () => {
Expand Down

0 comments on commit b097ad0

Please sign in to comment.