diff --git a/apps/default/main.py b/apps/default/main.py
index ce674c987..a20e88414 100644
--- a/apps/default/main.py
+++ b/apps/default/main.py
@@ -23,14 +23,14 @@ def increment(state):
print("The counter has been incremented.")
_update_message(state)
-# Initialise the state
+# Initialize the state
-# "_my_private_element" won't be serialised or sent to the frontend,
+# "_my_private_element" won't be serialized or sent to the frontend,
# because it starts with an underscore
initial_state = wf.init_state({
"my_app": {
- "title": "MY APP"
+ "title": "My app"
},
"_my_private_element": 1337,
"message": None,
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/src/ui/src/builder/sidebar/BuilderSidebarToolkit.vue b/src/ui/src/builder/sidebar/BuilderSidebarToolkit.vue
index c00ef7bb1..d9bc28bfc 100644
--- a/src/ui/src/builder/sidebar/BuilderSidebarToolkit.vue
+++ b/src/ui/src/builder/sidebar/BuilderSidebarToolkit.vue
@@ -26,6 +26,7 @@
{
}) => {
await page.getByPlaceholder(object).fill(color);
await page.locator(`[data-automation-action="toggle-panel"][data-automation-key="log"]`).click();
- const rowLocator = page
- .locator(".BuilderPanelSwitcher div.row")
- .filter({ hasText: "Return value" });
+ const rowsLocator = page
+ .locator(".BuilderPanelSwitcher div.row");
+ await expect(rowsLocator).toHaveCount(3);
+ const rowLocator = rowsLocator.filter({ hasText: "Return value" });
await rowLocator.getByRole("button", { name: "Details" }).click();
+ await expect(page.locator(".BuilderModal")).toBeVisible();
const resultsLocator = page.locator(
`.BuilderModal [data-automation-key="result"]`,
);
@@ -93,10 +95,11 @@ test.describe("Workflows", () => {
await page.locator(`[data-automation-action="run-workflow"]`).click();
await page.locator(`[data-automation-action="toggle-panel"][data-automation-key="log"]`).click();
- const rowLocator = page
- .locator(".BuilderPanelSwitcher div.row")
- .filter({ hasText: "Return value" }).first();;
+ const rowsLocator = page.locator(".BuilderPanelSwitcher div.row");
+ await expect(rowsLocator).toHaveCount(5);
+ const rowLocator = rowsLocator.filter({ hasText: "Return value" }).first();;
await rowLocator.getByRole("button", { name: "Details" }).click();
+ await expect(page.locator(".BuilderModal")).toBeVisible();
const returnValueLocator = page.locator(
`.BuilderModal [data-automation-key="return-value"]`,
);