mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-29 12:42:57 +00:00
21 lines
755 B
TypeScript
21 lines
755 B
TypeScript
import { expect, test } from "playwright/test";
|
|
|
|
const PAGES = ["/", "/docs/connectivity", "/changelog"];
|
|
|
|
for (const path of PAGES) {
|
|
test(`${path} shows the sponsors and invites the next one`, async ({ page }) => {
|
|
await page.goto(path);
|
|
|
|
const sponsors = page.getByRole("region", { name: "Sponsors", exact: true });
|
|
await expect(sponsors.getByRole("link", { name: "Hoplite" })).toHaveAttribute(
|
|
"href",
|
|
"https://hoplite.sh/?utm_source=paseo&utm_medium=website&utm_campaign=sponsor",
|
|
);
|
|
await expect(sponsors.getByText("Cloud coding agents", { exact: true })).toBeVisible();
|
|
await expect(sponsors.getByRole("link", { name: "Become a sponsor" })).toHaveAttribute(
|
|
"href",
|
|
"/sponsor#spot",
|
|
);
|
|
});
|
|
}
|