computer-scienceangular-roadmapbackend-roadmapblockchain-roadmapdba-roadmapdeveloper-roadmapdevops-roadmapfrontend-roadmapgo-roadmaphactoberfestjava-roadmapjavascript-roadmapnodejs-roadmappython-roadmapqa-roadmapreact-roadmaproadmapstudy-planvue-roadmapweb3-roadmap
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.
19 lines
519 B
19 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 }); |
|
}); |
|
}
|
|
|