From 3a672d79ec9bc767ea22f5f0fa4056dc9b556dfc Mon Sep 17 00:00:00 2001 From: uo285427 Date: Tue, 30 Apr 2024 02:53:31 +0200 Subject: [PATCH] arreglo errores --- webapp/e2e/steps/login-form.steps.js | 4 ++-- webapp/e2e/steps/play-game.steps.js | 1 - webapp/e2e/steps/settings.steps.js | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/webapp/e2e/steps/login-form.steps.js b/webapp/e2e/steps/login-form.steps.js index 258d4350..7a91945c 100644 --- a/webapp/e2e/steps/login-form.steps.js +++ b/webapp/e2e/steps/login-form.steps.js @@ -34,8 +34,8 @@ defineFeature(feature, test => { }); 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).toFill('input[label="Username"]', username); + await expect(page).toFill('input[label="Password"]', password); await expect(page).toClick('button', { text: 'Iniciar sesiĆ³n' }) }); diff --git a/webapp/e2e/steps/play-game.steps.js b/webapp/e2e/steps/play-game.steps.js index 792097ec..58d2e496 100644 --- a/webapp/e2e/steps/play-game.steps.js +++ b/webapp/e2e/steps/play-game.steps.js @@ -2,7 +2,6 @@ const puppeteer = require('puppeteer'); const { defineFeature, loadFeature }=require('jest-cucumber'); const setDefaultOptions = require('expect-puppeteer').setDefaultOptions const feature = loadFeature('./features/play-game.feature'); -const {textVerifyByXpath}=require('../steps_testUtils'); let page; let browser; diff --git a/webapp/e2e/steps/settings.steps.js b/webapp/e2e/steps/settings.steps.js index 50896339..532d589d 100644 --- a/webapp/e2e/steps/settings.steps.js +++ b/webapp/e2e/steps/settings.steps.js @@ -2,7 +2,6 @@ const puppeteer = require('puppeteer'); const { defineFeature, loadFeature }=require('jest-cucumber'); const setDefaultOptions = require('expect-puppeteer').setDefaultOptions const feature = loadFeature('./features/settings.feature'); -const {textVerifyByXpath}=require('../steps_testUtils'); let page; let browser;