-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { test, expect, Page } from '@playwright/test'; | ||
|
||
test('Visual Diff About', async ({ page }) => { | ||
await visualDiff(page, '/about/'); | ||
}); | ||
|
||
test('Visual Diff Text and Image', async ({ page }) => { | ||
await visualDiff(page, '/blog/space-games/'); | ||
}); | ||
|
||
|
||
async function visualDiff(page: Page, url: string) { | ||
await page.goto(url); | ||
|
||
// Trigger loading of all images | ||
for (const img of await page.locator('//img').all()) { | ||
await img.scrollIntoViewIfNeeded(); | ||
} | ||
|
||
// Set up listeners concurrently | ||
await expect(page).toHaveScreenshot({ fullPage: true, timeout: 50000}); | ||
} |
Binary file added
BIN
+791 KB
tests/minimum.spec.ts-snapshots/Visual-Diff-About-1-Google-Chrome-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+696 KB
tests/minimum.spec.ts-snapshots/Visual-Diff-About-1-Microsoft-Edge-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+241 KB
tests/minimum.spec.ts-snapshots/Visual-Diff-About-1-Mobile-Chrome-Dark-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+216 KB
tests/minimum.spec.ts-snapshots/Visual-Diff-About-1-Mobile-Chrome-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+206 KB
tests/minimum.spec.ts-snapshots/Visual-Diff-About-1-Mobile-Safari-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+717 KB
tests/minimum.spec.ts-snapshots/Visual-Diff-About-1-chromium-dark-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+696 KB
tests/minimum.spec.ts-snapshots/Visual-Diff-About-1-chromium-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+691 KB
tests/minimum.spec.ts-snapshots/Visual-Diff-About-1-webkit-dark-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+822 KB
.../minimum.spec.ts-snapshots/Visual-Diff-Text-and-Image-1-Google-Chrome-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+674 KB
...minimum.spec.ts-snapshots/Visual-Diff-Text-and-Image-1-Microsoft-Edge-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+506 KB
...mum.spec.ts-snapshots/Visual-Diff-Text-and-Image-1-Mobile-Chrome-Dark-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+420 KB
.../minimum.spec.ts-snapshots/Visual-Diff-Text-and-Image-1-Mobile-Chrome-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+372 KB
.../minimum.spec.ts-snapshots/Visual-Diff-Text-and-Image-1-Mobile-Safari-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+752 KB
.../minimum.spec.ts-snapshots/Visual-Diff-Text-and-Image-1-chromium-dark-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+674 KB
tests/minimum.spec.ts-snapshots/Visual-Diff-Text-and-Image-1-chromium-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+775 KB
tests/minimum.spec.ts-snapshots/Visual-Diff-Text-and-Image-1-firefox-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+642 KB
tests/minimum.spec.ts-snapshots/Visual-Diff-Text-and-Image-1-webkit-dark-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+634 KB
tests/minimum.spec.ts-snapshots/Visual-Diff-Text-and-Image-1-webkit-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.