diff --git a/web/tests/e2e/admin_assistants.spec.ts b/web/tests/e2e/admin_assistants.spec.ts index 308d0975e36c..a5ccf92c71f3 100644 --- a/web/tests/e2e/admin_assistants.spec.ts +++ b/web/tests/e2e/admin_assistants.spec.ts @@ -12,5 +12,8 @@ test( await expect(page.locator("p.text-sm").nth(0)).toHaveText( /^Assistants are a way to build/ ); + + const generalTextLocator = page.locator("tr.border-b td").nth(1); + await expect(generalTextLocator.locator("p.text")).toHaveText("General"); } ); diff --git a/web/tests/e2e/home.spec.ts b/web/tests/e2e/home.spec.ts index ff6105ce6a52..05f8526b31b3 100644 --- a/web/tests/e2e/home.spec.ts +++ b/web/tests/e2e/home.spec.ts @@ -28,10 +28,6 @@ test( await page.waitForURL("http://localhost:3000/chat"); - // Create the locator (no waiting happens here) - const textarea = page.locator('textarea[placeholder="Send a message "]'); - - // Explicitly wait for the textarea to be visible - await expect(textarea).toBeVisible(); + await page.getByPlaceholder("Send a message "); } );