diff --git a/demo-ecommerce/abtests.config.ts b/demo-ecommerce/abtests.config.ts index 36241934..df938442 100644 --- a/demo-ecommerce/abtests.config.ts +++ b/demo-ecommerce/abtests.config.ts @@ -63,6 +63,7 @@ export default defineConfig({ browser: 'chromium', args: ['--no-sandbox'], }, + viewports: ['phone'], maxNumDiffPixels: 50, defaultMisMatchThreshold: 0.1, }, @@ -76,8 +77,9 @@ export default defineConfig({ // `screenEmulation` are NOT set here — the viewport referenced from // shared.viewports owns them; the runner lowers them via // lhConfigForViewport. + viewports: ['phone'], lighthouseConfig: LIGHTHOUSE_CONFIG, - numberOfMeasurements: 10, + numberOfMeasurements: 8, pValueThreshold: 0.01, }, @@ -85,6 +87,19 @@ export default defineConfig({ lighthouseConfig: LIGHTHOUSE_CONFIG, }, + bisect: { + rebuildCommands: [ + { + description: 'Install JavaScript dependencies', + command: 'yarn install --immutable', + }, + { + description: 'Precompile application assets', + command: 'rm -rf public/packs tmp/cache && SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile', + }, + ], + }, + twinServers: { experimentDir: process.cwd(), controlDir: process.env.CONTROL_REPO_DIR || '../../shaka-perf-control/demo-ecommerce', diff --git a/demo-ecommerce/app/javascript/components/pages/HomePage.tsx b/demo-ecommerce/app/javascript/components/pages/HomePage.tsx index ed1e5079..fbd28b18 100644 --- a/demo-ecommerce/app/javascript/components/pages/HomePage.tsx +++ b/demo-ecommerce/app/javascript/components/pages/HomePage.tsx @@ -17,17 +17,42 @@ import LoadingSpinner from '../shared/LoadingSpinner'; import LazySection from '../shared/LazySection'; import ExperimentA11yRegressions from '../shared/ExperimentA11yRegressions'; +const BisectAccessibilityProbe: React.FC = () => ( +