forked from Belco90/octochangelog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.happo.js
27 lines (25 loc) · 813 Bytes
/
.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
const { RemoteBrowserTarget } = require('happo.io')
const DESKTOP_VIEWPORT = '1024x768'
const MOBILE_VIEWPORT = '320x640'
module.exports = {
apiKey: process.env.HAPPO_API_KEY,
apiSecret: process.env.HAPPO_API_SECRET,
targets: {
'Chrome - Desktop': new RemoteBrowserTarget('chrome', {
viewport: DESKTOP_VIEWPORT,
useFullPageFallbackForTallScreenshots: false,
}),
'Firefox - Desktop': new RemoteBrowserTarget('firefox', {
viewport: DESKTOP_VIEWPORT,
useFullPageFallbackForTallScreenshots: false,
}),
'Chrome - Mobile': new RemoteBrowserTarget('chrome', {
viewport: MOBILE_VIEWPORT,
useFullPageFallbackForTallScreenshots: false,
}),
'Safari - Mobile': new RemoteBrowserTarget('safari', {
viewport: MOBILE_VIEWPORT,
useFullPageFallbackForTallScreenshots: false,
}),
},
}