From e4e02f950c07070b1921baa8d310d902e07f352b Mon Sep 17 00:00:00 2001 From: Nicholas Ray Date: Thu, 5 May 2022 12:01:48 -0600 Subject: [PATCH] Lower default threshold to 0.04 The previous default 0.1 failed to catch some changes --- config.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/config.js b/config.js index 2b4b539f..f6b89db3 100644 --- a/config.js +++ b/config.js @@ -10,13 +10,11 @@ const tests = [ }, { label: 'Special:BlankPage (#vector-2022, #sidebar-open)', - path: '/wiki/Special:BlankPage', - misMatchThreshold: 0.04 + path: '/wiki/Special:BlankPage' }, { label: 'Special:BlankPage (#vector-2022, #userMenu-open)', - path: '/wiki/Special:BlankPage', - misMatchThreshold: 0.04 + path: '/wiki/Special:BlankPage' }, { label: 'Special:RecentChanges (#vector-2022, no max width, #sidebar-closed)', @@ -24,8 +22,7 @@ const tests = [ }, { label: 'Special:BlankPage with user menu open (#vector-2022, #logged-in, #userMenu-open)', - path: '/wiki/Special:BlankPage', - misMatchThreshold: 0.4 + path: '/wiki/Special:BlankPage' }, { label: 'Test sticky header (#vector-2022, #logged-in, #scroll)', @@ -69,7 +66,8 @@ const tests = [ const scenarios = tests.map( ( test ) => { return Object.assign( {}, test, { url: `${BASE_URL}${test.path}`, - delay: 1500 + delay: 1500, + misMatchThreshold: 0.04 } ); } );