test: update backend config, frontend utilities, and test coverage (#8671)
* ✨ (custom-get-download-folders.ts): update default filename to include folderName variable to provide more context and improve user experience * ✨ (custom-get-download-folders.ts): update folder name from "My Projects" to "Starter Project" for better clarity and consistency * 📝 (.github/changes-filter.yaml): add new directory 'serialization' to components list for changes filtering 🐛 (general-bugs-truncate-results.spec.ts): fix typo in 'truncated' word and update timeout for better test reliability * 🔧 (custom-get-download-folders.ts): Remove unnecessary conditional statement and update default filename for download to "flows.zip" for better clarity.
This commit is contained in:
parent
0895ebbdcb
commit
2ad73df1b5
2 changed files with 17 additions and 3 deletions
1
.github/changes-filter.yaml
vendored
1
.github/changes-filter.yaml
vendored
|
|
@ -54,6 +54,7 @@ components:
|
|||
- "src/backend/base/langflow/custom/**"
|
||||
- "src/backend/base/langflow/components/**"
|
||||
- "src/backend/base/langflow/initial_setup/**"
|
||||
- "src/backend/base/langflow/serialization/**"
|
||||
|
||||
workspace:
|
||||
- "src/backend/base/langflow/inputs/**"
|
||||
|
|
|
|||
|
|
@ -22,17 +22,25 @@ test.skip(
|
|||
targetPosition: { x: 300, y: 300 },
|
||||
});
|
||||
|
||||
await page.getByTestId("input-list-plus-btn_urls-0").click();
|
||||
|
||||
await page
|
||||
.getByTestId("inputlist_str_urls_0")
|
||||
.fill("https://docs.langflow.org/");
|
||||
|
||||
await page
|
||||
.getByTestId("inputlist_str_urls_1")
|
||||
.fill("https://www.langflow.org/");
|
||||
|
||||
await page.getByTitle("fit view").click();
|
||||
|
||||
await page.getByTestId("default_slider_display_value").click();
|
||||
await page.getByTestId("slider_input").fill("4");
|
||||
await page.getByTestId("slider_input").fill("5");
|
||||
|
||||
await page.getByTestId("button_run_url").click();
|
||||
|
||||
await page.waitForSelector("text=built successfully", {
|
||||
timeout: 30000,
|
||||
timeout: 60000 * 3,
|
||||
});
|
||||
|
||||
await page
|
||||
|
|
@ -43,7 +51,12 @@ test.skip(
|
|||
exact: true,
|
||||
});
|
||||
|
||||
expect(page.getByText(`[truncated`)).toBeVisible();
|
||||
await page.waitForSelector("text=truncated", {
|
||||
timeout: 3000,
|
||||
});
|
||||
|
||||
const trucatedWordCount = await page.getByText(`[truncated`).count();
|
||||
expect(trucatedWordCount).toBeGreaterThan(0);
|
||||
|
||||
expect(page.locator("span.ag-header-cell-text").nth(1)).toHaveText("url");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue