Redid reference files
@@ -1,11 +1,13 @@
|
||||
const { urls, baseUrl } = require('./urls');
|
||||
|
||||
const MISMATCH_THRESHOLD = 0.3;
|
||||
|
||||
const createScenariosFromUrls = (urls, delay = 1000) => {
|
||||
return Object.keys(urls).map((label) => ({
|
||||
label,
|
||||
url: urls[label],
|
||||
selectors: ['document'],
|
||||
misMatchThreshold: 0.3,
|
||||
misMatchThreshold: MISMATCH_THRESHOLD,
|
||||
requireSameDimensions: true,
|
||||
delay,
|
||||
}));
|
||||
@@ -26,7 +28,7 @@ module.exports = {
|
||||
label: 'Choose Service - Accounts',
|
||||
url: `${baseUrl}/accounts`,
|
||||
selectors: ['h1.heading-large', 'a.usa-button[href="/add-service"]'],
|
||||
misMatchThreshold: 0.1,
|
||||
misMatchThreshold: MISMATCH_THRESHOLD,
|
||||
requireSameDimensions: true,
|
||||
},
|
||||
// example page with script
|
||||
@@ -34,7 +36,7 @@ module.exports = {
|
||||
label: 'Get Started Page - Highlight Trial Mode',
|
||||
url: `${baseUrl}/using-notify/get-started`,
|
||||
selectors: ['document'],
|
||||
misMatchThreshold: 0.1,
|
||||
misMatchThreshold: MISMATCH_THRESHOLD,
|
||||
requireSameDimensions: true,
|
||||
onBeforeScript: 'puppeteer/countFeatureLinks.js',
|
||||
},
|
||||
|
||||
|
Before Width: | Height: | Size: 79 KiB |
|
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 349 KiB After Width: | Height: | Size: 349 KiB |
|
Before Width: | Height: | Size: 323 KiB After Width: | Height: | Size: 325 KiB |
|
Before Width: | Height: | Size: 169 KiB After Width: | Height: | Size: 169 KiB |
|
Before Width: | Height: | Size: 169 KiB After Width: | Height: | Size: 169 KiB |
|
Before Width: | Height: | Size: 902 KiB After Width: | Height: | Size: 908 KiB |
|
Before Width: | Height: | Size: 417 KiB After Width: | Height: | Size: 418 KiB |
|
Before Width: | Height: | Size: 374 KiB After Width: | Height: | Size: 376 KiB |
|
Before Width: | Height: | Size: 282 KiB After Width: | Height: | Size: 282 KiB |
|
Before Width: | Height: | Size: 558 KiB After Width: | Height: | Size: 558 KiB |
|
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 115 KiB |
|
Before Width: | Height: | Size: 189 KiB After Width: | Height: | Size: 190 KiB |
1
urls.js
@@ -3,7 +3,6 @@ const baseUrl = 'http://localhost:6012';
|
||||
// List of routes with paths and labels
|
||||
const sublinks = [
|
||||
{ label: 'Homepage', path: '/' },
|
||||
{ label: 'Accounts', path: '/accounts' },
|
||||
{ label: 'Add Service', path: '/add-service' },
|
||||
{ label: 'Get Started', path: '/using-notify/get-started' },
|
||||
{ label: 'Trial Mode', path: '/using-notify/trial-mode' },
|
||||
|
||||