-
Notifications
You must be signed in to change notification settings - Fork 5
/
.percy.js
39 lines (39 loc) · 1.22 KB
/
.percy.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
module.exports = {
version: 2,
static: {
include: [
/(.*-smoke-test.*)\/components\/(.*)\.html/,
/(.*-smoke-test.*)\/endpoints\/(.*)\.html/,
/(.*-smoke-test.*)\/layouts\/(.*)\.html/,
/(.*-smoke-test.*)\/releases\/index\.html/,
/(.*-smoke-test.*)\/types\/(.*)\.html/,
/(.*-smoke-test.*)\/views\/markdown\/(.*)\.html/,
/(.*-smoke-test.*)\/views\/beta\/(.*)\.html/,
/(.*-smoke-test.*)\/views\/plan-tag\/(.*)\.html/,
],
exclude: ['site-template/*'],
options: [
{
include: /(.*-smoke-test.*)\/components\/rss-feeds\/index\.html/,
waitForSelector: 'table[data-table-name="rss-feed"]',
},
{
include: /(.*-smoke-test.*)\/components\/mermaid-diagram\/index\.html/,
waitForSelector: '#body-content svg.statediagram',
},
{
include: /(.*-smoke-test.*)\/components\/video-player\/index\.html/,
waitForSelector: '#body-content div#vjs_video_998',
},
],
},
snapshot: {
widths: [1706],
minHeight: 1024,
percyCSS: `#application { height: auto; }`,
},
discovery: {
// ms (https://docs.percy.io/docs/command-line-client#section--network-idle-timeout-t)
networkIdleTimeout: 750,
},
};