There was an error while loading. Please reload this page.
2 parents 010f13a + a24409e commit 5ac1289Copy full SHA for 5ac1289
1 file changed
src/frontend/tests/utils/rename-flow.ts
@@ -39,6 +39,17 @@ export const renameFlow = async (
39
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
40
timeout: 30000,
41
});
42
+
43
+ if (flowName) {
44
+ await page.waitForFunction(
45
+ (expected) => {
46
+ const header = document.querySelector('[data-testid="flow_name"]');
47
+ return header && header.textContent?.trim() === expected;
48
+ },
49
+ flowName,
50
+ { timeout: 30000 },
51
+ );
52
+ }
53
} else {
54
await page.getByTestId("save-flow-settings").isDisabled({ timeout: 3000 });
55
await page.getByTestId("cancel-flow-settings").isEnabled({ timeout: 3000 });
0 commit comments