-
Notifications
You must be signed in to change notification settings - Fork 1
/
.happo.js
71 lines (70 loc) · 2.24 KB
/
.happo.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
const { RemoteBrowserTarget } = require("happo.io");
module.exports = {
apiKey: process.env.HAPPO_API_KEY,
apiSecret: process.env.HAPPO_API_SECRET,
project: "uqa-testing",
targets: {
"chrome-1080p": new RemoteBrowserTarget("chrome", {
viewport: "1920x1080",
freezeAnimations: "last-frame",
}),
// all viewports https://viewportsizer.com/devices/
// Samsung Galaxy S10+, S10
"chrome-galaxy-s10": new RemoteBrowserTarget("chrome", {
viewport: "360x740",
freezeAnimations: "last-frame",
}),
// iphone viewports https://yesviz.com/iphones.php
"safari-1080p": new RemoteBrowserTarget("safari", {
viewport: "1920x1080",
freezeAnimations: "last-frame",
// so that safari won't cut off the screenshot at window height
scrollStitch: true,
}),
// iphone 12 pro
"safari-iphone-12-pro": new RemoteBrowserTarget("safari", {
viewport: "390x844",
freezeAnimations: "last-frame",
scrollStitch: true,
}),
"Apple-iPad-Pro-12.9": new RemoteBrowserTarget("safari", {
viewport: "1024x1366",
freezeAnimations: "last-frame",
scrollStitch: true,
}),
"Apple-iPad-Air": new RemoteBrowserTarget("safari", {
viewport: "834x1112",
freezeAnimations: "last-frame",
scrollStitch: true,
}),
"MacBook Pro 13.3": new RemoteBrowserTarget("safari", {
viewport: "1280x800",
freezeAnimations: "last-frame",
scrollStitch: true,
}),
"MacBook Pro 16": new RemoteBrowserTarget("safari", {
viewport: "1536x960",
freezeAnimations: "last-frame",
scrollStitch: true,
}),
// iphone 12 pro
"chrome-650": new RemoteBrowserTarget("chrome", {
viewport: "650x415",
freezeAnimations: "last-frame",
}),
"bug-1507": new RemoteBrowserTarget("chrome", {
viewport: "1507x300",
freezeAnimations: "last-frame",
}),
"bug-1230": new RemoteBrowserTarget("chrome", {
viewport: "1230x300",
freezeAnimations: "last-frame",
}),
"bug-1000": new RemoteBrowserTarget("chrome", {
viewport: "1000x300",
freezeAnimations: "last-frame",
}),
// only works on public urls
// pages: [{ url: 'http://localhost:3000/', title: 'Home Page' }],
},
};