Skip to content

Commit 12337fb

Browse files
committed
Merge branch 'main' of https://github.com/langflow-ai/langflow into le-207
2 parents 8ac8931 + a24409e commit 12337fb

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/frontend/tests/utils/rename-flow.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ export const renameFlow = async (
3939
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
4040
timeout: 30000,
4141
});
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+
}
4253
} else {
4354
await page.getByTestId("save-flow-settings").isDisabled({ timeout: 3000 });
4455
await page.getByTestId("cancel-flow-settings").isEnabled({ timeout: 3000 });

0 commit comments

Comments
 (0)