-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(vrt): Stop the snapshot madness (#17163)
* Remove redundant Playwright specs * Increase tolerance in Playwright * Wait for profile pictures to resolve * Ensure scene is loaded before proceeding * Always wait for loaders to disappear * Disable Gravatars in snapshots * Don't wait for loaders in more stories with loaders * Improve resiliency of batch export story * Fix one more loading story * Unskip Playwright tests * Improve inconsistencies * Upgrade Playwright from 1.29.2 to 1.37.1 * Wait for images to load * Unify code editors * Properly wait for images to load * Go back to Playwright 1.29.2 * Wait for loader selector in LemonTable stories * Update UI snapshots for `chromium` (1) * Update UI snapshots for `chromium` (2) --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
2660367
commit 59d4398
Showing
76 changed files
with
278 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ jobs: | |
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
timeout-minutes: 30 | ||
container: | ||
image: mcr.microsoft.com/playwright:v1.29.2 | ||
image: mcr.microsoft.com/playwright:v1.29.2 # Same as @storybook/[email protected]'s dependency | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-1.17 KB
(93%)
frontend/__snapshots__/components-integrations-slack--slack-integration-added.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.64 KB
(94%)
frontend/__snapshots__/components-subscriptions--subscriptions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.61 KB
(55%)
frontend/__snapshots__/lemon-ui-lemon-divider--vertical-dashed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-792 Bytes
(69%)
frontend/__snapshots__/lemon-ui-lemon-snack--complex-content.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.75 KB
(36%)
frontend/__snapshots__/lemon-ui-profile-bubbles--multiple-bubbles-at-limit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-721 Bytes
(65%)
...__snapshots__/lemon-ui-profile-bubbles--multiple-bubbles-overflowing-by-one.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-705 Bytes
(60%)
...__snapshots__/lemon-ui-profile-bubbles--multiple-bubbles-overflowing-by-two.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.75 KB
(36%)
frontend/__snapshots__/lemon-ui-profile-bubbles--multiple-bubbles-with-tooltip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-773 Bytes
(42%)
frontend/__snapshots__/lemon-ui-profile-bubbles--one-bubble.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-13.4 KB
(93%)
frontend/__snapshots__/scenes-app-annotations--annotations.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-16 Bytes
(100%)
frontend/__snapshots__/scenes-app-dashboards--create-template.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-620 Bytes
(99%)
frontend/__snapshots__/scenes-app-feature-flags--feature-flags-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-894 Bytes
(99%)
frontend/__snapshots__/scenes-app-notebooks--notebooks-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-974 Bytes
(98%)
frontend/__snapshots__/scenes-app-notebooks--text-only-notebook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-953 Bytes
(99%)
...napshots__/scenes-app-recordings--recordings-play-list-no-pinned-recordings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-884 Bytes
(99%)
...pshots__/scenes-app-recordings--recordings-play-list-with-pinned-recordings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+7 Bytes
(100%)
frontend/__snapshots__/scenes-other-billing-v2--billing-v-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.08 KB
(98%)
frontend/__snapshots__/scenes-other-invitesignup--logged-in.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Spinner } from 'lib/lemon-ui/Spinner' | ||
import { inStorybookTestRunner } from 'lib/utils' | ||
import MonacoEditor, { type EditorProps } from '@monaco-editor/react' | ||
import { themeLogic } from '~/layout/navigation-3000/themeLogic' | ||
import { useValues } from 'kea' | ||
|
||
export type CodeEditorProps = Omit<EditorProps, 'loading' | 'theme'> | ||
|
||
export function CodeEditor({ options, ...editorProps }: CodeEditorProps): JSX.Element { | ||
const { isDarkModeOn } = useValues(themeLogic) | ||
|
||
const scrollbarRendering = !inStorybookTestRunner() ? 'auto' : 'hidden' | ||
|
||
return ( | ||
<MonacoEditor // eslint-disable-line react/forbid-elements | ||
theme={isDarkModeOn ? 'vs-dark' : 'vs-light'} | ||
loading={<Spinner />} | ||
options={{ | ||
...options, | ||
scrollbar: { | ||
vertical: scrollbarRendering, | ||
horizontal: scrollbarRendering, | ||
...options?.scrollbar, | ||
}, | ||
}} | ||
{...editorProps} | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
z-index: 10; | ||
position: absolute; | ||
left: 0; | ||
padding: 0; | ||
bottom: -1px; | ||
width: 100%; | ||
height: 0; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.