From cf8e75c95f6082197140fa084b54fcffea00dbc5 Mon Sep 17 00:00:00 2001
From: Damien Iriberry <damien.iriberry@artal.fr>
Date: Fri, 19 Apr 2024 11:20:29 +0200
Subject: [PATCH] [ivette] - Fix e2e tests

---
 ivette/tests/libs/e2eService.ts   | 2 +-
 ivette/tests/libs/locatorsUtil.ts | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/ivette/tests/libs/e2eService.ts b/ivette/tests/libs/e2eService.ts
index a89f43df74d..6b7c6dfe218 100644
--- a/ivette/tests/libs/e2eService.ts
+++ b/ivette/tests/libs/e2eService.ts
@@ -43,7 +43,7 @@ export async function launchIvette(
       ...process.env,
       NODE_ENV: "development",
     },
-    args: params,
+    args: args,
   });
 
   // Get the first window that the app opens, wait if necessary
diff --git a/ivette/tests/libs/locatorsUtil.ts b/ivette/tests/libs/locatorsUtil.ts
index a24317eb2cb..552f4693145 100644
--- a/ivette/tests/libs/locatorsUtil.ts
+++ b/ivette/tests/libs/locatorsUtil.ts
@@ -26,8 +26,10 @@ import { Locator, Page } from "@playwright/test";
  * Locator to select "Console" in the right menu
  */
 export function getConsoleView(window: Page): Locator {
-  return window
-    .getByText("Console").first();
+  window
+    .getByText("Other Plugins")
+    .click();
+  return window.getByText("Console").first();
 }
 
 /**
-- 
GitLab