Skip to content

Commit 13e4a73

Browse files
committed
local tests
1 parent bc4aa55 commit 13e4a73

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed
6.28 KB
Loading
46.6 KB
Loading
77.9 KB
Loading
5.08 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', 'hello-world', 'cdn-es5', 'columns'].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)