test(e2e): Replace ChevronLeft selector with sidebar-search-input (#11194)

* improve element to be visivle on PW tests

* rollback for autologin test
This commit is contained in:
Cristhian Zanforlin Lousa
2026-01-06 09:14:38 -03:00
committed by GitHub
parent 4557a0b29c
commit 2b39a66901
16 changed files with 28 additions and 28 deletions

View File

@ -11,7 +11,7 @@ test(
await page.getByTestId("side_nav_options_all-templates").click();
await page.getByRole("heading", { name: "Basic Prompting" }).click();
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
});
@ -44,7 +44,7 @@ test("search flows", { tag: ["@release", "@mainpage"] }, async ({ page }) => {
await page.getByTestId("side_nav_options_all-templates").click();
await page.getByRole("heading", { name: "Basic Prompting" }).click();
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
});
@ -55,7 +55,7 @@ test("search flows", { tag: ["@release", "@mainpage"] }, async ({ page }) => {
await page.getByTestId("side_nav_options_all-templates").click();
await page.getByRole("heading", { name: "Memory Chatbot" }).click();
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
});
@ -64,7 +64,7 @@ test("search flows", { tag: ["@release", "@mainpage"] }, async ({ page }) => {
await page.getByTestId("side_nav_options_all-templates").click();
await page.getByRole("heading", { name: "Document Q&A" }).click();
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
});
@ -117,7 +117,7 @@ test(
await page.getByTestId("icon-SaveAll").first().click();
await page.keyboard.press("Escape");
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
});

View File

@ -147,12 +147,12 @@ test(
await renameFlow(page, { flowName: randomFlowName });
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
state: "visible",
});
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 1500,
});
@ -217,7 +217,7 @@ test(
await renameFlow(page, { flowName: secondRandomFlowName });
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
});

View File

@ -12,7 +12,7 @@ test(
await page.getByTestId("side_nav_options_all-templates").click();
await page.getByRole("heading", { name: "Basic Prompting" }).click();
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
});
@ -135,7 +135,7 @@ test("change flow folder", async ({ page }) => {
await page.getByTestId("side_nav_options_all-templates").click();
await page.getByRole("heading", { name: "Basic Prompting" }).click();
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
});

View File

@ -99,7 +99,7 @@ test("should share component with share button", async ({ page }) => {
await page.waitForTimeout(1000);
await page.getByText("Success! Your API Key has been saved.").isVisible();
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
});

View File

@ -83,7 +83,7 @@ async function progressTrackTestFn(
await page.getByTestId("side_nav_options_all-templates").click();
await page.getByRole("heading", { name: "Basic Prompting" }).click();
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
});

View File

@ -22,7 +22,7 @@ test(
await page.getByTestId("replace-button").click();
}
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
});
@ -102,7 +102,7 @@ test(
await page.getByTestId("replace-button").click();
}
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
});

View File

@ -77,7 +77,7 @@ test(
.first();
await newFlowDiv.click();
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 5000,
});
@ -177,7 +177,7 @@ test(
.first();
await newFlow2.click();
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 5000,
});

View File

@ -14,7 +14,7 @@ test(
await adjustScreenView(page);
// Go back to main page
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
});
await page.getByTestId("icon-ChevronLeft").first().click();
@ -23,7 +23,7 @@ test(
await page.getByTestId("new-project-btn").click();
await page.getByTestId("side_nav_options_all-templates").click();
await page.getByRole("heading", { name: "Document Q&A" }).click();
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
});
await page.getByTestId("icon-ChevronLeft").first().click();
@ -32,7 +32,7 @@ test(
await page.getByTestId("new-project-btn").click();
await page.getByTestId("side_nav_options_all-templates").click();
await page.getByRole("heading", { name: "Basic Prompting" }).click();
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
});
await page.getByTestId("icon-ChevronLeft").first().click();

View File

@ -31,7 +31,7 @@ test(
await page.getByTestId("install-Basic RAG").click();
await page.waitForTimeout(5000);
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
});
await page.getByTestId("icon-ChevronLeft").first().click();

View File

@ -48,7 +48,7 @@ test(
await waitForSuccessMessage(page);
// Wait for navigation button
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
state: "visible",
timeout: 30000,
});

View File

@ -17,7 +17,7 @@ test(
timeout: 100000,
});
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
});
@ -71,7 +71,7 @@ test(
timeout: 100000,
});
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
});

View File

@ -45,7 +45,7 @@ test(
.isVisible({ timeout: 3000 });
await page.getByText("Changes saved successfully").last().click();
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 30000,
});

View File

@ -108,7 +108,7 @@ test(
await page.getByTestId("side_nav_options_all-templates").click();
await page.getByRole("heading", { name: "Basic Prompting" }).click();
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
});

View File

@ -70,7 +70,7 @@ test.skip(
await page.getByTestId("install-Basic RAG").click();
await page.waitForTimeout(1000);
await page.getByText("Component Installed Successfully").isVisible();
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
});
await page.getByTestId("icon-ChevronLeft").first().click();

View File

@ -37,7 +37,7 @@ test(
timeout: 3000,
});
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 100000,
});

View File

@ -36,7 +36,7 @@ export const renameFlow = async (
.isVisible({ timeout: 3000 });
await page.getByText("Changes saved successfully").last().click();
await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
await page.waitForSelector('[data-testid="sidebar-search-input"]', {
timeout: 30000,
});
} else {