This commit is contained in:
@@ -10,6 +10,46 @@ test.describe('visual regression', () => {
|
||||
await expect(page).toHaveScreenshot('home.png', { fullPage: true });
|
||||
});
|
||||
|
||||
test('services page matches snapshot', async ({ page }) => {
|
||||
await page.goto('/services');
|
||||
await expect(page).toHaveTitle(/SaaS Architecture Services | mifi Ventures/);
|
||||
await expect(page.locator('h1')).toBeVisible();
|
||||
await expect(page.locator('#main')).toBeVisible();
|
||||
await expect(page).toHaveScreenshot('services.png', { fullPage: true });
|
||||
});
|
||||
|
||||
test('services/hands-on-saas-architecture-consultant page matches snapshot', async ({ page }) => {
|
||||
await page.goto('/services/hands-on-saas-architecture-consultant');
|
||||
await expect(page).toHaveTitle(/SaaS Product Architecture Consultant | mifi Ventures/);
|
||||
await expect(page.locator('h1')).toBeVisible();
|
||||
await expect(page.locator('#main')).toBeVisible();
|
||||
await expect(page).toHaveScreenshot('services-hands-on-saas-architecture-consultant.png', { fullPage: true });
|
||||
});
|
||||
|
||||
test('services/mvp-architecture-and-launch page matches snapshot', async ({ page }) => {
|
||||
await page.goto('/services/mvp-architecture-and-launch');
|
||||
await expect(page).toHaveTitle(/MVP Architecture & Launch Consultant | mifi Ventures/);
|
||||
await expect(page.locator('h1')).toBeVisible();
|
||||
await expect(page.locator('#main')).toBeVisible();
|
||||
await expect(page).toHaveScreenshot('services-mvp-architecture-and-launch.png', { fullPage: true });
|
||||
});
|
||||
|
||||
test('services/fractional-cto-for-early-stage-saas page matches snapshot', async ({ page }) => {
|
||||
await page.goto('/services/fractional-cto-for-early-stage-saas');
|
||||
await expect(page).toHaveTitle(/Fractional CTO for Early-Stage SaaS | mifi Ventures/);
|
||||
await expect(page.locator('h1')).toBeVisible();
|
||||
await expect(page.locator('#main')).toBeVisible();
|
||||
await expect(page).toHaveScreenshot('services-fractional-cto-for-early-stage-saas.png', { fullPage: true });
|
||||
});
|
||||
|
||||
test('services/stage-aligned-infrastructure page matches snapshot', async ({ page }) => {
|
||||
await page.goto('/services/stage-aligned-infrastructure');
|
||||
await expect(page).toHaveTitle(/Startup Infrastructure Strategy | mifi Ventures/);
|
||||
await expect(page.locator('h1')).toBeVisible();
|
||||
await expect(page.locator('#main')).toBeVisible();
|
||||
await expect(page).toHaveScreenshot('services-stage-aligned-infrastructure.png', { fullPage: true });
|
||||
});
|
||||
|
||||
test('privacy policy page matches snapshot', async ({ page }) => {
|
||||
await page.goto('/privacy-policy');
|
||||
await expect(page).toHaveTitle(/Privacy Policy | mifi Ventures/);
|
||||
|
||||
Reference in New Issue
Block a user