Skip to content

Commit 8cbabeb

Browse files
committed
local tests
1 parent 511c6d1 commit 8cbabeb

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed
77.9 KB
Loading
-22.2 KB
Loading

test/visual/local.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
function local(name){
3+
return 'http://localhost:2345/' + name + '/';
4+
}
5+
6+
['demo'].forEach(item => {
7+
test(item, async () => {
8+
await page.goto(local(item));
9+
const image = await page.screenshot();
10+
expect(image).toMatchImageSnapshot();
11+
});
12+
});

0 commit comments

Comments
 (0)