From 785e02812aed09a58c6b141ba23ebe69a10165d4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Grand?= <francois.grand@inrae.fr>
Date: Fri, 12 May 2023 13:39:24 +0200
Subject: [PATCH] fix(e2e): failing test

refs #620
---
 e2e/reset-results.e2e-spec.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/e2e/reset-results.e2e-spec.ts b/e2e/reset-results.e2e-spec.ts
index fad95d5f0..b99ce82ac 100644
--- a/e2e/reset-results.e2e-spec.ts
+++ b/e2e/reset-results.e2e-spec.ts
@@ -32,7 +32,7 @@ describe("Check results are reset after application settings modification - ", (
 
     async function runTestWithParameter(param: string, val1: number, val2: number) {
         // set starting compute precision
-        const input = await prefPage.getInputFromName(param);
+        let input = await prefPage.getInputFromName(param);
         await input.clearValue();
         await input.setValue(val1.toString());
 
@@ -57,6 +57,7 @@ describe("Check results are reset after application settings modification - ", (
         await browser.pause(200);
 
         // modify compute precision
+        input = await prefPage.getInputFromName(param);
         await input.setValue(val2.toString());
         await browser.pause(500);
 
-- 
GitLab