1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-27 11:09:53 +02:00

Add tests for roadmaps, guides and videos

This commit is contained in:
Kamran Ahmed
2023-01-15 15:26:58 +04:00
parent cbd79ef299
commit ee843cc9e2
6 changed files with 20 additions and 0 deletions

View File

@@ -4,6 +4,12 @@ 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}`);