mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 13:52:34 +08:00
Refactor: Improve performance of sliderComponent tests (#4923)
This commit is contained in:
@ -29,7 +29,9 @@ test(
|
||||
|
||||
while (modalCount === 0) {
|
||||
await page.getByText("New Flow", { exact: true }).click();
|
||||
await page.waitForTimeout(3000);
|
||||
await page.waitForSelector('[data-testid="modal-title"]', {
|
||||
timeout: 3000,
|
||||
});
|
||||
modalCount = await page.getByTestId("modal-title")?.count();
|
||||
}
|
||||
|
||||
@ -43,7 +45,9 @@ test(
|
||||
await page.getByTestId("sidebar-search-input").click();
|
||||
await page.getByTestId("sidebar-search-input").fill("ollama");
|
||||
|
||||
await page.waitForTimeout(1000);
|
||||
await page.waitForSelector('[data-testid="modelsOllama"]', {
|
||||
timeout: 3000,
|
||||
});
|
||||
|
||||
await page
|
||||
.getByTestId("modelsOllama")
|
||||
@ -75,7 +79,6 @@ test(
|
||||
await page.keyboard.press("Backspace");
|
||||
await page.locator("textarea").last().fill(cleanCode);
|
||||
await page.locator('//*[@id="checkAndSaveBtn"]').click();
|
||||
await page.waitForTimeout(500);
|
||||
|
||||
await page.getByTestId("fit_view").click();
|
||||
|
||||
@ -83,6 +86,8 @@ test(
|
||||
|
||||
await moveSlider(page, "right", false);
|
||||
|
||||
// wait for the slider to update
|
||||
|
||||
await page.waitForTimeout(500);
|
||||
|
||||
await page.getByTestId("zoom_out").click();
|
||||
|
||||
Reference in New Issue
Block a user