-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✅ Add tests for ignored regions in test archiver.
Note: This will have to be run through chromatic, since it's a change to the way the capture system works. Refs CAP-1291.
- Loading branch information
Showing
3 changed files
with
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>Dynamic Content E2E Tests</title> | ||
<style> | ||
* { | ||
color: white; | ||
} | ||
body { | ||
background-color: teal; | ||
} | ||
|
||
#time-e2e-test-ignore { | ||
font-size: 16pt; | ||
width: 100vw; | ||
} | ||
|
||
</style> | ||
</head> | ||
<body> | ||
<div class="container" style="background-color: teal"> | ||
<h1>Hello There! The current time is:</h1> | ||
<div data-chromatic="ignore" class="chromatic-ignore" id="time-e2e-test-ignore"></div> | ||
</div> | ||
|
||
<script> | ||
let date = new Date(); | ||
document.getElementById('time-e2e-test-ignore').innerText = date.toTimeString(); | ||
</script> | ||
</body> | ||
</html> |
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,9 @@ | ||
import { test, expect } from '../src'; | ||
|
||
// NOTE: This is a test that is meant to be run through Chromatic, so it doesn't actually work | ||
// with the automated test suite. | ||
test('ignored regions work with chromatic', async ({ page }) => { | ||
test.setTimeout(2000); | ||
await page.goto('/ignore'); | ||
await setTimeout(() => {}, 1000); | ||
}); |
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