forked from Tradeshift/elements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.happo.js
45 lines (41 loc) · 1.16 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
const { RemoteBrowserTarget } = require('happo.io');
const happoPluginStorybook = require('happo-plugin-storybook');
module.exports = {
project: '@tradeshift/elements',
apiKey: process.env.HAPPO_API_KEY,
apiSecret: process.env.HAPPO_API_SECRET,
targets: {
chrome: new RemoteBrowserTarget('chrome', {
viewport: '1200x1200',
maxHeight: 10000
}),
firefox: new RemoteBrowserTarget('firefox', {
viewport: '1200x1200',
maxHeight: 10000
}),
edge: new RemoteBrowserTarget('edge', {
viewport: '1200x1200',
maxHeight: 10000
}),
'internet explorer': new RemoteBrowserTarget('internet explorer', {
viewport: '1200x1200',
maxHeight: 10000
})
// happo.io is running Safari v10.0, which doesn't support CSS Grid,
// and it's not supported by Tradeshift officially.
// Until this is fixed, they will not be used for screenshot testing.
// safari: new RemoteBrowserTarget('safari', {
// viewport: '1024x768'
// }),
// 'ios-safari': new RemoteBrowserTarget('ios-safari', {
// viewport: '750x1334'
// })
},
plugins: [
happoPluginStorybook({
configDir: './.storybook-happo',
staticDir: './static',
outputDir: './.happo'
})
]
};