ci: add regression test for matching main page correctly in router example

This commit is contained in:
Greg Johnston 2024-01-19 10:26:58 -05:00
parent 1d4772251a
commit 67dd188358

View file

@ -5,6 +5,10 @@ test.describe("Test Router example", () => {
await page.goto("/");
});
test("Starts on correct home page", async({ page }) => {
await expect(page.getByText("Select a contact.")).toBeVisible();
});
const links = [
{ label: "Bill Smith", url: "/0" },
{ label: "Tim Jones", url: "/1" },