bgg-ottawa-sell-club/e2e/test.js

13 lines
363 B
JavaScript

import { expect, test } from '@playwright/test';
for (const url of ['/', '/stats/', '/about/', '/cart/']) {
test(url + ' render', async ({ page }) => {
await page.goto(url);
await expect(
page.getByRole('heading', {
name: 'Ottawa board games for sale and trade',
}),
).toBeVisible();
});
}