mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-27 20:38:32 +02:00
fix up tests
This commit is contained in:
@@ -12,5 +12,8 @@ test(
|
|||||||
await expect(page.locator("p.text-sm").nth(0)).toHaveText(
|
await expect(page.locator("p.text-sm").nth(0)).toHaveText(
|
||||||
/^Assistants are a way to build/
|
/^Assistants are a way to build/
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const generalTextLocator = page.locator("tr.border-b td").nth(1);
|
||||||
|
await expect(generalTextLocator.locator("p.text")).toHaveText("General");
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@@ -28,10 +28,6 @@ test(
|
|||||||
|
|
||||||
await page.waitForURL("http://localhost:3000/chat");
|
await page.waitForURL("http://localhost:3000/chat");
|
||||||
|
|
||||||
// Create the locator (no waiting happens here)
|
await page.getByPlaceholder("Send a message ");
|
||||||
const textarea = page.locator('textarea[placeholder="Send a message "]');
|
|
||||||
|
|
||||||
// Explicitly wait for the textarea to be visible
|
|
||||||
await expect(textarea).toBeVisible();
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user