fix: bind performance evidence to production resources

This commit is contained in:
2026-09-02 08:53:00 +03:00
parent 5b7e47c2a2
commit e3ac3a4db4
23 changed files with 642 additions and 60 deletions

View File

@@ -75,6 +75,7 @@ describe('authenticated reference runs', () => {
reducedMotion: 'no-preference',
saveData: false,
pageZoom: 1,
devicePixelRatio: 2,
browserName: 'Chromium',
browserVersion: '140.0.0',
startedFromAboutBlank: true,
@@ -85,9 +86,21 @@ describe('authenticated reference runs', () => {
reducedMotion: 'no-preference',
saveData: false,
pageZoom: 1,
devicePixelRatio: 2,
browserName: 'Chromium',
browserVersion: '140.0.0',
startedFromAboutBlank: true,
})).toThrow(/viewport/u);
expect(() => validateObservedReferenceEnvironment(authenticated, {
viewport: { width: 1_440, height: 900 },
visible: true,
reducedMotion: 'no-preference',
saveData: false,
pageZoom: 1,
devicePixelRatio: 1,
browserName: 'Chromium',
browserVersion: '140.0.0',
startedFromAboutBlank: true,
})).toThrow(/pixel ratio/u);
});
});