tests: add smoketest to capture microtask regression (#8379)

This commit is contained in:
Patrick Hulce 2019-04-30 13:32:55 -05:00 коммит произвёл GitHub
Родитель 42a278a741
Коммит 2350dd917f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 47 добавлений и 38 удалений

Просмотреть файл

@ -26,6 +26,7 @@ before_script:
# see comment above about puppeteer
- export CHROME_PATH="$(which google-chrome-stable)"
- sh -e /etc/init.d/xvfb start
# Print out the Chrome version so we know what we're working with
- google-chrome-stable --version
- yarn build-all
script:

Просмотреть файл

@ -26,4 +26,50 @@ module.exports = [
},
},
},
{
lhr: {
requestedUrl: 'http://localhost:10200/tricky-main-thread.html?setTimeout',
finalUrl: 'http://localhost:10200/tricky-main-thread.html?setTimeout',
audits: {
'interactive': {
// Make sure all of the CPU time is reflected in the perf metrics as well.
score: '<.2',
},
'bootup-time': {
details: {
items: {
0: {
// FIXME: Appveyor finds this particular assertion very flaky for some reason :(
url: process.env.APPVEYOR ? /main/ : /main-thread-consumer/,
scripting: '>1000',
},
},
},
},
},
},
},
{
lhr: {
requestedUrl: 'http://localhost:10200/tricky-main-thread.html?fetch',
finalUrl: 'http://localhost:10200/tricky-main-thread.html?fetch',
audits: {
'interactive': {
// Make sure all of the CPU time is reflected in the perf metrics as well.
score: '<.2',
},
'bootup-time': {
details: {
items: {
0: {
// TODO: requires sampling profiler and async stacks, see https://github.com/GoogleChrome/lighthouse/issues/8526
// url: /main-thread-consumer/,
scripting: '>1000',
},
},
},
},
},
},
},
];

Просмотреть файл

@ -36,42 +36,4 @@ module.exports = [
},
},
},
{
lhr: {
requestedUrl: 'http://localhost:10200/tricky-main-thread.html?setTimeout',
finalUrl: 'http://localhost:10200/tricky-main-thread.html?setTimeout',
audits: {
'bootup-time': {
details: {
items: {
0: {
// FIXME: Appveyor finds this particular assertion very flaky for some reason :(
url: process.env.APPVEYOR ? /main/ : /main-thread-consumer/,
scripting: '>1000',
},
},
},
},
},
},
},
{
lhr: {
requestedUrl: 'http://localhost:10200/tricky-main-thread.html?fetch',
finalUrl: 'http://localhost:10200/tricky-main-thread.html?fetch',
audits: {
'bootup-time': {
details: {
items: {
0: {
// TODO: requires async stacks, https://github.com/GoogleChrome/lighthouse/pull/5504
// url: /main-thread-consumer/,
scripting: '>1000',
},
},
},
},
},
},
},
];