From 59f272684a72e76fd9548f7400d5c227c53bbef5 Mon Sep 17 00:00:00 2001 From: uo287545 Date: Sun, 7 Apr 2024 17:17:50 +0200 Subject: [PATCH] Trying to fix error while passing tests on actions --- src/test/java/com/uniovi/steps/GameStep.java | 2 +- src/test/java/com/uniovi/steps/SignUpStep.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/uniovi/steps/GameStep.java b/src/test/java/com/uniovi/steps/GameStep.java index 15d7bff0..f22f7a3a 100644 --- a/src/test/java/com/uniovi/steps/GameStep.java +++ b/src/test/java/com/uniovi/steps/GameStep.java @@ -31,7 +31,7 @@ public void iShouldStartPlaying() throws InterruptedException { List finalMessage; while(playing){ //I obtain the buttons for the answers - List elems = SeleniumUtils.waitLoadElementsBy(driver, "text", "Test answer 0", 5); + List elems = SeleniumUtils.waitLoadElementsBy(driver, "text", "Test answer 0", 10); //I click on the first button elems.get(0).click(); diff --git a/src/test/java/com/uniovi/steps/SignUpStep.java b/src/test/java/com/uniovi/steps/SignUpStep.java index d5cedca5..8fcf86e9 100644 --- a/src/test/java/com/uniovi/steps/SignUpStep.java +++ b/src/test/java/com/uniovi/steps/SignUpStep.java @@ -59,7 +59,7 @@ public void iPressTheRegisterButton() { @Then("I should see the profile page") public void iShouldSeeTheProfilePage() { - SeleniumUtils.waitLoadElementsBy(driver, "span", p.getString("home.authenticated_as", PropertiesExtractor.getSPANISH()), 10); + SeleniumUtils.waitLoadElementsBy(driver, "span", p.getString("home.authenticated_as", PropertiesExtractor.getSPANISH()), 5); } @Then("I should see the error message {string}")