-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test(demo): Introduce E2E test for homepage refs #DS-869
- Loading branch information
Showing
8 changed files
with
25 additions
and
0 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,21 @@ | ||
import { test, expect } from '@playwright/test'; | ||
|
||
test.describe('Demo Homepages', () => { | ||
const demos = [ | ||
{ | ||
url: 'https://spirit-design-system-demo.netlify.app/', | ||
package: 'web', | ||
}, | ||
{ | ||
url: 'https://spirit-design-system-react.netlify.app/', | ||
package: 'web-react', | ||
}, | ||
]; | ||
|
||
for (const demo of demos) { | ||
test(`test demo homepage ${demo.package}`, async ({ page }) => { | ||
await page.goto(demo.url); | ||
await expect(page).toHaveScreenshot(`${demo.package}.png`, { fullPage: true }); | ||
}); | ||
} | ||
}); |
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
+98.9 KB
tests/e2e/demo-homepages.spec.ts-snapshots/web-react-chromium-darwin.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
+146 KB
tests/e2e/demo-homepages.spec.ts-snapshots/web-react-firefox-darwin.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
+134 KB
tests/e2e/demo-homepages.spec.ts-snapshots/web-react-webkit-darwin.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.