diff --git a/packages/code-studio/src/styleguide/StyleGuide.test.tsx b/packages/code-studio/src/styleguide/StyleGuide.test.tsx index d6d2d324d4..c346adc6d9 100644 --- a/packages/code-studio/src/styleguide/StyleGuide.test.tsx +++ b/packages/code-studio/src/styleguide/StyleGuide.test.tsx @@ -5,6 +5,9 @@ import { dh } from '@deephaven/jsapi-shim'; import { ApiContext } from '@deephaven/jsapi-bootstrap'; import StyleGuide from './StyleGuide'; +window.HTMLElement.prototype.scroll = jest.fn(); +window.HTMLElement.prototype.scrollIntoView = jest.fn(); + describe(' mounts', () => { test('h1 text of StyleGuide renders', () => { // Provide a non-null array to ThemeProvider to tell it to initialize diff --git a/tests/styleguide.spec.ts-snapshots/navigations-chromium-linux.png b/tests/styleguide.spec.ts-snapshots/navigations-chromium-linux.png index 2389d4c4e0..c2ef12153b 100644 Binary files a/tests/styleguide.spec.ts-snapshots/navigations-chromium-linux.png and b/tests/styleguide.spec.ts-snapshots/navigations-chromium-linux.png differ diff --git a/tests/styleguide.spec.ts-snapshots/navigations-firefox-linux.png b/tests/styleguide.spec.ts-snapshots/navigations-firefox-linux.png index 866387b8b5..686934c83d 100644 Binary files a/tests/styleguide.spec.ts-snapshots/navigations-firefox-linux.png and b/tests/styleguide.spec.ts-snapshots/navigations-firefox-linux.png differ diff --git a/tests/styleguide.spec.ts-snapshots/navigations-webkit-linux.png b/tests/styleguide.spec.ts-snapshots/navigations-webkit-linux.png index 3ede878ea3..715fd9cdc4 100644 Binary files a/tests/styleguide.spec.ts-snapshots/navigations-webkit-linux.png and b/tests/styleguide.spec.ts-snapshots/navigations-webkit-linux.png differ