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.

22 lines
528 B

import path from 'node:path';
import fs from 'node:fs';
import { test, expect } from '@playwright/test';
2 years ago
const roadmapIds = fs.readdirSync(
path.join(process.cwd(), 'src/data/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 });
});
}