overlooker

Install
npm i overlooker
Usage
const { profile, compare, check } = require('overlooker');
const start = async () => {
const actions = [{
name: 'test-action',
action: async (page) => {
await page.click('.button');
await page.waitForSelector('.new-content');
}
}];
const dataStaging = await profile({
pages: [{
name: 'main',
url: 'https://staging.example.com',
heroElement: '.hero-element',
actions
}]
});
const dataFeature = await profile({
pages: [{
name: 'main',
url: 'https://feature.example.com',
heroElement: '.hero-element',
actions
}]
});
const compared = compare(dataStaging, dataFeature);
const checked = check(compared, {
'percent.stats.timings.firstPaint.median': 0.05
});
};
start();
Profile configuration
Tool for getting build data
Bundle Internals Plugin