Roadmap to becoming a developer in 2022
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
519 B

import path from 'node:path';
import fs from 'node:fs';
import { test, expect } from '@playwright/test';
const roadmapIds = fs.readdirSync(path.join(process.cwd(), 'src/roadmaps'));
test(`roadmaps`, async ({ page }) => {
await page.goto('/roadmaps');
await expect(page).toHaveScreenshot({ fullPage: true });
});
for (const roadmapId of roadmapIds) {
test(`roadmap ${roadmapId}`, async ({ page }) => {
await page.goto(`/${roadmapId}`);
await expect(page).toHaveScreenshot({ fullPage: true });
});
}