Skip to content

Commit

Permalink
Add first test
Browse files Browse the repository at this point in the history
This is trivial for now but once we have some functionality it will be
more interesting
  • Loading branch information
rich committed Sep 16, 2024
1 parent 6a6a58e commit 09e2364
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions e2es/towtruck.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { test, expect } from "@playwright/test";

test("has dependency info", async ({ page, baseURL }) => {
await page.goto(baseURL);

await expect(page).toHaveTitle(/Towtruck/);

page.getByText("There are 3 repositories that Towtruck is tracking for dxw.");

const tableHeadings = [
"Name",
"Description",
"Language",
"Last Updated",
"Open issues count",
"Open PRs count",
"Dependencies",
];
tableHeadings.forEach((heading) => {
page.getByRole("columnheader", { name: heading });
});
});

0 comments on commit 09e2364

Please sign in to comment.