From ba1bdf0ea20318a393846bb79a5850c2042225d2 Mon Sep 17 00:00:00 2001
From: Ramiro Medina <64783088+ramedina86@users.noreply.github.com>
Date: Tue, 3 Dec 2024 16:16:34 +0000
Subject: [PATCH] test: Improve e2e workflows
---
src/ui/src/builder/BuilderApp.vue | 6 ++----
tests/e2e/tests/workflows.spec.ts | 4 ++--
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/ui/src/builder/BuilderApp.vue b/src/ui/src/builder/BuilderApp.vue
index 5668e1fd4..421a08bac 100644
--- a/src/ui/src/builder/BuilderApp.vue
+++ b/src/ui/src/builder/BuilderApp.vue
@@ -29,9 +29,7 @@
:key="selectedId ?? 'noneSelected'"
>
-
+
@@ -375,7 +373,7 @@ onMounted(() => {
--notificationsDisplacement: calc(var(--builderSettingsWidth) + 24px);
}
-.builderPanelSwitcher {
+.panelSwitcher {
grid-column: 2 / 3;
grid-row: 3;
}
diff --git a/tests/e2e/tests/workflows.spec.ts b/tests/e2e/tests/workflows.spec.ts
index d8ccef8bc..e579b960c 100644
--- a/tests/e2e/tests/workflows.spec.ts
+++ b/tests/e2e/tests/workflows.spec.ts
@@ -33,7 +33,7 @@ test.describe("Workflows", () => {
await expect(rowsLocator).toHaveCount(3);
const rowLocator = rowsLocator.filter({ hasText: "Return value" });
await rowLocator.getByRole("button", { name: "Details" }).click();
- await expect(".BuilderModal").toBeVisible();
+ await expect(page.locator(".BuilderModal")).toBeVisible();
const resultsLocator = page.locator(
`.BuilderModal [data-automation-key="result"]`,
);
@@ -99,7 +99,7 @@ test.describe("Workflows", () => {
await expect(rowsLocator).toHaveCount(5);
const rowLocator = rowsLocator.filter({ hasText: "Return value" }).first();;
await rowLocator.getByRole("button", { name: "Details" }).click();
- await expect(".BuilderModal").toBeVisible();
+ await expect(page.locator(".BuilderModal")).toBeVisible();
const returnValueLocator = page.locator(
`.BuilderModal [data-automation-key="return-value"]`,
);