Skip to content

Commit

Permalink
playwright-vrt
Browse files Browse the repository at this point in the history
  • Loading branch information
stevector committed May 13, 2024
1 parent 00ed054 commit c97ddbb
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 38 deletions.
1 change: 1 addition & 0 deletions tests/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules/
/test-results/
/playwright-report/
/playwright-tests/visuals.spec.ts-snapshots/
/blob-report/
/playwright/.cache/
38 changes: 0 additions & 38 deletions tests/playwright-tests/example.spec.ts

This file was deleted.

33 changes: 33 additions & 0 deletions tests/playwright-tests/visuals.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { test, expect } from '@playwright/test';

test('home page', async ({ page }) => {
await page.goto('/');
await page.getByText('Accept Cookies').click();
await expect(page).toHaveScreenshot('homepage.png');
});

test('kill-mysql-queries', async ({ page }) => {
await page.goto('/guides/mariadb-mysql/kill-mysql-queries');

await page.getByText('Accept Cookies').click();

// await expect(page.getByLabel('toc-nav')).toBeVisible();

await expect(page).toHaveScreenshot('guides---mariadb-mysql---kill-mysql-queries.png');
});

test('certification---study-guide', async ({ page }) => {
await page.goto('/certification/study-guide');
// await expect(page.getByLabel('toc-nav')).toBeVisible();
await page.getByText('Accept Cookies').click();

await expect(page).toHaveScreenshot('certification---study-guide.png');
});

test('drupal-cron', async ({ page }) => {
await page.goto('/drupal-cron');
// await expect(page.getByLabel('toc-nav')).toBeVisible();
await page.getByText('Accept Cookies').click();

await expect(page).toHaveScreenshot('drupal-cron.png');
});

0 comments on commit c97ddbb

Please sign in to comment.