From 025b352913e77c6fe7e2a08372c669b291c13ec5 Mon Sep 17 00:00:00 2001 From: Daniel Heppner Date: Wed, 19 Jun 2024 16:54:58 +0100 Subject: [PATCH] disable all map snapshots :( --- .storybook/test-runner.ts | 8 +- .../src/__snapshots__/index.story.tsx.snap | 4166 ----------------- packages/base-map/src/index.story.tsx | 19 +- .../__snapshots__/core-utils.story.tsx.snap | 24 - .../src/EndpointsOverlay.story.tsx | 7 + .../EndpointsOverlay.story.tsx.snap | 601 --- .../OtpRrItineraryBody.story.tsx.snap | 24 +- .../Otp2TileOverlay.story.tsx.snap | 86 - .../src/ParkAndRideOverlay.story.js | 2 + .../ParkAndRideOverlay.story.js.snap | 672 --- .../src/RouteViewerOverlay.story.tsx | 8 + .../RouteViewerOverlay.story.tsx.snap | 406 -- .../src/StopViewerOverlay.story.tsx | 8 +- .../StopViewerOverlay.story.tsx.snap | 211 - .../stops-overlay/src/StopsOverlay.story.tsx | 4 + .../__snapshots__/StopsOverlay.story.tsx.snap | 207 - .../src/__snapshots__/index.story.tsx.snap | 1385 ------ .../src/index.story.tsx | 11 +- .../src/TransitiveOverlay.story.tsx | 3 +- .../TransitiveOverlay.story.tsx.snap | 2757 ----------- .../__snapshots__/TripOptions.story.tsx.snap | 196 - .../src/TripViewerOverlay.story.tsx | 3 +- .../TripViewerOverlay.story.tsx.snap | 83 - .../src/VehicleRentalOverlay.story.tsx | 4 +- .../VehicleRentalOverlay.story.tsx.snap | 220 - .../src/ZoomBasedMarker.story.tsx | 3 +- .../ZoomBasedMarker.story.tsx.snap | 163 - 27 files changed, 74 insertions(+), 11207 deletions(-) delete mode 100644 packages/base-map/src/__snapshots__/index.story.tsx.snap delete mode 100644 packages/core-utils/src/__snapshots__/core-utils.story.tsx.snap delete mode 100644 packages/endpoints-overlay/src/__snapshots__/EndpointsOverlay.story.tsx.snap delete mode 100644 packages/otp2-tile-overlay/src/__snapshots__/Otp2TileOverlay.story.tsx.snap delete mode 100644 packages/park-and-ride-overlay/src/__snapshots__/ParkAndRideOverlay.story.js.snap delete mode 100644 packages/stop-viewer-overlay/src/__snapshots__/StopViewerOverlay.story.tsx.snap delete mode 100644 packages/stops-overlay/src/__snapshots__/StopsOverlay.story.tsx.snap delete mode 100644 packages/transit-vehicle-overlay/src/__snapshots__/index.story.tsx.snap delete mode 100644 packages/transitive-overlay/src/__snapshots__/TransitiveOverlay.story.tsx.snap delete mode 100644 packages/trip-viewer-overlay/src/__snapshots__/TripViewerOverlay.story.tsx.snap delete mode 100644 packages/vehicle-rental-overlay/src/__snapshots__/VehicleRentalOverlay.story.tsx.snap delete mode 100644 packages/zoom-based-markers/src/__snapshots__/ZoomBasedMarker.story.tsx.snap diff --git a/.storybook/test-runner.ts b/.storybook/test-runner.ts index 2900f5eb22..5ed5754e73 100644 --- a/.storybook/test-runner.ts +++ b/.storybook/test-runner.ts @@ -5,7 +5,11 @@ import parameters from './previewParameters'; const ONLY_RUN = process.env.ONLY_RUN -async function runSnapshots(page: Page) { +async function runSnapshots(page: Page, context: TestContext) { + const storyContext = await getStoryContext(page, context); + if(storyContext.parameters?.storyshots?.disable) { + return; + } await waitForPageReady(page); const elementHandler = await page.$('#storybook-root'); const innerHTML = await elementHandler?.innerHTML(); @@ -36,7 +40,7 @@ const config: TestRunnerConfig = { async postVisit(page, context) { // the #storybook-root element wraps the story. In Storybook 6.x, the selector is #root if (!ONLY_RUN || ONLY_RUN === "SNAPSHOTS") { - await runSnapshots(page); + await runSnapshots(page, context); } if (!ONLY_RUN || ONLY_RUN === "A11Y") { await runA11yTest(page, context); diff --git a/packages/base-map/src/__snapshots__/index.story.tsx.snap b/packages/base-map/src/__snapshots__/index.story.tsx.snap deleted file mode 100644 index d620aee28b..0000000000 --- a/packages/base-map/src/__snapshots__/index.story.tsx.snap +++ /dev/null @@ -1,4166 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`BaseMap clickAndViewportchangedEvents smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-`; - -exports[`BaseMap clickToSetBounds smoke-test 1`] = ` -
- -
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-`; - -exports[`BaseMap customLocationPopupContent smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-
-
-
-

- Popup Title -

-

- Sample - - popup - - content. -

-
-
- -
-
-
-
-`; - -exports[`BaseMap maxZoom smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-`; - -exports[`BaseMap onContextMenuPopup smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-`; - -exports[`BaseMap optionalLayers smoke-test 1`] = ` -
-
-
- - -
- -
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
- -
-
-`; - -exports[`BaseMap overlayWithLargeDataSet smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
- Do not add Storybook overhead on layers with large dataset... -
-
-
-`; - -exports[`BaseMap withMultipleBaseLayers smoke-test 1`] = ` -
- -
-`; - -exports[`BaseMap withMultipleBaseLayersAndOptionalLayers smoke-test 1`] = ` -
- -
-`; - -exports[`BaseMap withOptionalControls smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
- - -
-
-
-
-
-
-
-
- 1 km -
-
-
-
- - - -
-
- - -
- This adds to the attribution information supplied by the map style json | (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-`; - -exports[`BaseMap withSampleMarkers smoke-test 1`] = ` -
-
-
- - -
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-`; - -exports[`BaseMap zoomed smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-`; diff --git a/packages/base-map/src/index.story.tsx b/packages/base-map/src/index.story.tsx index d0e25865d4..29afc69875 100644 --- a/packages/base-map/src/index.story.tsx +++ b/packages/base-map/src/index.story.tsx @@ -24,7 +24,8 @@ const center: [number, number] = [45.522862, -122.667837]; export default { args: { center }, component: BaseMap, - title: "BaseMap" + title: "BaseMap", + parameters: { storyshots: { disable: true } } }; // eslint-disable-next-line react/jsx-props-no-spreading @@ -52,6 +53,7 @@ const onViewportChanged = action("onViewportChanged"); const a11yOverrideParameters = { a11y: { config: { rules: [{ id: "color-contrast", reviewOnFail: true }] } } }; +const disableStoryshots = { storyshots: { disable: true } }; export const clickAndViewportchangedEvents = Template.bind({}); clickAndViewportchangedEvents.args = { @@ -61,6 +63,7 @@ clickAndViewportchangedEvents.args = { onViewportChanged }; clickAndViewportchangedEvents.decorators = [withMap()]; +clickAndViewportchangedEvents.parameters = disableStoryshots; export const zoomed = Template.bind({}); zoomed.args = { @@ -68,6 +71,7 @@ zoomed.args = { zoom: 17 }; zoomed.decorators = [withMap()]; +zoomed.parameters = disableStoryshots; const SetBoundsButton = () => { const { mapWithBounds } = useMap(); @@ -105,12 +109,14 @@ export const clickToSetBounds = (): ComponentStory => ( ); +clickToSetBounds.parameters = disableStoryshots; export const maxZoom = Template.bind({}); maxZoom.args = { maxZoom: 18, zoom: 30 }; +maxZoom.parameters = disableStoryshots; maxZoom.decorators = [withMap()]; export const withSampleMarkers = () => ( @@ -118,6 +124,7 @@ export const withSampleMarkers = () => ( {sampleMarkers}{" "} ); +withSampleMarkers.parameters = disableStoryshots; export const overlayWithLargeDataSet = () => ( <> @@ -128,6 +135,7 @@ export const overlayWithLargeDataSet = () => ( ); overlayWithLargeDataSet.decorators = [withMap()]; +overlayWithLargeDataSet.parameters = disableStoryshots; export const customLocationPopupContent = () => ( @@ -138,6 +146,7 @@ export const customLocationPopupContent = () => ( ); +customLocationPopupContent.parameters = disableStoryshots; export const optionalLayers = { args: { showEverything: false }, @@ -160,7 +169,10 @@ export const optionalLayers = { ) }; // Custom styling for this story only, not in production -customLocationPopupContent.parameters = a11yOverrideParameters; +customLocationPopupContent.parameters = { + ...a11yOverrideParameters, + ...disableStoryshots +}; export const onContextMenuPopup = () => ; @@ -184,6 +196,7 @@ export const withOptionalControls = () => ( ); withOptionalControls.decorators = [withMap()]; +withOptionalControls.parameters = disableStoryshots; export const withMultipleBaseLayers = () => { const [mapTilerKey, setMapTilerKey] = useState(""); @@ -209,6 +222,7 @@ export const withMultipleBaseLayers = () => { ); }; +withMultipleBaseLayers.parameters = disableStoryshots; export const withMultipleBaseLayersAndOptionalLayers = () => { const [mapTilerKey, setMapTilerKey] = useState(""); @@ -239,3 +253,4 @@ export const withMultipleBaseLayersAndOptionalLayers = () => { ); }; +withMultipleBaseLayersAndOptionalLayers.parameters = disableStoryshots; diff --git a/packages/core-utils/src/__snapshots__/core-utils.story.tsx.snap b/packages/core-utils/src/__snapshots__/core-utils.story.tsx.snap deleted file mode 100644 index 8542adefef..0000000000 --- a/packages/core-utils/src/__snapshots__/core-utils.story.tsx.snap +++ /dev/null @@ -1,24 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`core-utils RouteColorTester smoke-test 1`] = ` -
-
- Provided color pair -
-
- Corrected color pair -
-
- - -`; diff --git a/packages/endpoints-overlay/src/EndpointsOverlay.story.tsx b/packages/endpoints-overlay/src/EndpointsOverlay.story.tsx index d811bfff93..f923abe280 100644 --- a/packages/endpoints-overlay/src/EndpointsOverlay.story.tsx +++ b/packages/endpoints-overlay/src/EndpointsOverlay.story.tsx @@ -9,6 +9,8 @@ import { withMap } from "../../../.storybook/base-map-wrapper"; import EndpointsOverlay from "."; +const disableStoryshots = { storyshots: { disable: true } }; + // EndpointsOverlay props const clearLocation = action("clearLocation"); const forgetPlace = action("forgetPlace"); @@ -51,6 +53,7 @@ export const EndpointsOverlayWithoutUserSettings: ComponentStory ); +EndpointsOverlayWithoutUserSettings.parameters = disableStoryshots; export const EndpointsOverlayWithUserSettings: ComponentStory = () => ( ); +EndpointsOverlayWithUserSettings.parameters = disableStoryshots; export const EndpointsOverlayWithCustomMapMarkers: ComponentStory = () => ( ); +EndpointsOverlayWithCustomMapMarkers.parameters = disableStoryshots; export const EndpointsOverlayWithIntermediatePlace: ComponentStory = () => ( ); +EndpointsOverlayWithIntermediatePlace.parameters = disableStoryshots; export const EndpointsOverlayWithUnnamedPlace: ComponentStory = () => ( ); +EndpointsOverlayWithUnnamedPlace.parameters = disableStoryshots; diff --git a/packages/endpoints-overlay/src/__snapshots__/EndpointsOverlay.story.tsx.snap b/packages/endpoints-overlay/src/__snapshots__/EndpointsOverlay.story.tsx.snap deleted file mode 100644 index 277c564d52..0000000000 --- a/packages/endpoints-overlay/src/__snapshots__/EndpointsOverlay.story.tsx.snap +++ /dev/null @@ -1,601 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`EndpointsOverlay EndpointsOverlayWithCustomMapMarkers smoke-test 1`] = ` -
-
-
- - -
- -
-
- -
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-`; - -exports[`EndpointsOverlay EndpointsOverlayWithIntermediatePlace smoke-test 1`] = ` -
-
-
- - -
- - - - -
-
- - - - -
-
- - - - -
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-
-`; - -exports[`EndpointsOverlay EndpointsOverlayWithUnnamedPlace smoke-test 1`] = ` -
-
-
- - -
- - - - -
-
- - - - -
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-
-`; - -exports[`EndpointsOverlay EndpointsOverlayWithUserSettings smoke-test 1`] = ` -
-
-
- - -
- - - - -
-
- - - - -
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-`; - -exports[`EndpointsOverlay EndpointsOverlayWithoutUserSettings smoke-test 1`] = ` -
-
-
- - -
- - - - -
-
- - - - -
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-`; diff --git a/packages/itinerary-body/src/stories/__snapshots__/OtpRrItineraryBody.story.tsx.snap b/packages/itinerary-body/src/stories/__snapshots__/OtpRrItineraryBody.story.tsx.snap index 7350965ef3..a5e7d421d9 100644 --- a/packages/itinerary-body/src/stories/__snapshots__/OtpRrItineraryBody.story.tsx.snap +++ b/packages/itinerary-body/src/stories/__snapshots__/OtpRrItineraryBody.story.tsx.snap @@ -17757,7 +17757,7 @@ exports[`ItineraryBody/otp-react-redux ThreeAlertsAlwaysCollapsing smoke-test 1` The west elevators at the Washington Park MAX Station are out of service. Please use east elevators to access street level and platforms.
- Effective as of November 14, 56436 + Effective as of August 11, 56439
- Effective as of February 18, 56434 + Effective as of November 14, 56436
- Effective as of May 25, 56431 + Effective as of February 18, 56434
- Effective as of November 14, 56436 + Effective as of August 11, 56439
- Effective as of February 18, 56434 + Effective as of November 14, 56436
- Effective as of May 25, 56431 + Effective as of February 18, 56434
- Effective as of November 14, 56436 + Effective as of August 11, 56439
- Effective as of February 18, 56434 + Effective as of November 14, 56436
- Effective as of May 25, 56431 + Effective as of February 18, 56434
- Effective as of November 14, 56436 + Effective as of August 11, 56439
- Effective as of February 18, 56434 + Effective as of November 14, 56436
- Effective as of May 25, 56431 + Effective as of February 18, 56434 - OTP2 Server with stops layer enabled - - -
-  https://fake-otp-server.com/otp
-
-mocks downtown Philadelphia stop tile data. Check stops in the layer selector and zoom in on downtown Philadelphia (near city hall) to see some stops loaded from OTP tiles. -
-
- - -
-
- -
-`; diff --git a/packages/park-and-ride-overlay/src/ParkAndRideOverlay.story.js b/packages/park-and-ride-overlay/src/ParkAndRideOverlay.story.js index a84ad658b7..b5da13aefa 100644 --- a/packages/park-and-ride-overlay/src/ParkAndRideOverlay.story.js +++ b/packages/park-and-ride-overlay/src/ParkAndRideOverlay.story.js @@ -6,6 +6,7 @@ import { withMap } from "../../../.storybook/base-map-wrapper"; import ParkAndRideOverlay from "."; +const disableStoryshots = { storyshots: { disable: true } }; const center = [45.518092, -122.671202]; const zoom = 13; @@ -22,3 +23,4 @@ export const Default = () => ( visible /> ); +Default.parameters = disableStoryshots; diff --git a/packages/park-and-ride-overlay/src/__snapshots__/ParkAndRideOverlay.story.js.snap b/packages/park-and-ride-overlay/src/__snapshots__/ParkAndRideOverlay.story.js.snap deleted file mode 100644 index 450cbfea36..0000000000 --- a/packages/park-and-ride-overlay/src/__snapshots__/ParkAndRideOverlay.story.js.snap +++ /dev/null @@ -1,672 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`ParkAndRideOverlay Default smoke-test 1`] = ` -
-
-
- - -
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
- -
- P -
-
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-`; diff --git a/packages/route-viewer-overlay/src/RouteViewerOverlay.story.tsx b/packages/route-viewer-overlay/src/RouteViewerOverlay.story.tsx index bb59f220f6..d982cf1681 100644 --- a/packages/route-viewer-overlay/src/RouteViewerOverlay.story.tsx +++ b/packages/route-viewer-overlay/src/RouteViewerOverlay.story.tsx @@ -14,6 +14,7 @@ import RouteViewerOverlay from "."; const PORTLAND = [45.543092, -122.671202]; const POWDER_SPRINGS = [33.8595, -84.67483]; const zoom = 11; +const disableStoryshots = { storyshots: { disable: true } }; // Hide some story args completely. const hiddenProp = { @@ -64,6 +65,7 @@ export const Default = Template.bind({}); Default.args = { routeData }; +Default.parametes = disableStoryshots; export const WithPathStyling = Template.bind({}); WithPathStyling.args = { @@ -73,13 +75,16 @@ WithPathStyling.args = { }, routeData }; +WithPathStyling.parameters = disableStoryshots; export const OTP2RouteOutsideOfInitialView = Template.bind({}); OTP2RouteOutsideOfInitialView.args = { routeData: routeDataOtp2 }; +OTP2RouteOutsideOfInitialView.parameters = disableStoryshots; export const WithChangingPath = (): JSX.Element => ; +WithChangingPath.parameters = disableStoryshots; export const FlexRoute = Template.bind({}); FlexRoute.args = { @@ -102,6 +107,7 @@ FlexRoute.argTypes = { clipToPatternStops: { control: "boolean" } }; FlexRoute.decorators = [withMap(POWDER_SPRINGS, zoom)]; +FlexRoute.parameters = disableStoryshots; export const FlexRoute2 = Template.bind({}); FlexRoute2.args = { @@ -124,6 +130,7 @@ FlexRoute2.argTypes = { clipToPatternStops: { control: "boolean" } }; FlexRoute2.decorators = [withMap(POWDER_SPRINGS, zoom)]; +FlexRoute2.parameters = disableStoryshots; export const FlexRoute3 = Template.bind({}); FlexRoute3.args = { @@ -143,3 +150,4 @@ FlexRoute3.args = { ), routeData: flexRouteData3 }; +FlexRoute3.parameters = disableStoryshots; diff --git a/packages/route-viewer-overlay/src/__snapshots__/RouteViewerOverlay.story.tsx.snap b/packages/route-viewer-overlay/src/__snapshots__/RouteViewerOverlay.story.tsx.snap index e93ae4e443..e509b7e50a 100644 --- a/packages/route-viewer-overlay/src/__snapshots__/RouteViewerOverlay.story.tsx.snap +++ b/packages/route-viewer-overlay/src/__snapshots__/RouteViewerOverlay.story.tsx.snap @@ -1,371 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`RouteViewerOverlay Default smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-`; - -exports[`RouteViewerOverlay FlexRoute smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-
-`; - -exports[`RouteViewerOverlay FlexRoute2 smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-
-`; - -exports[`RouteViewerOverlay FlexRoute3 smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-`; - -exports[`RouteViewerOverlay OTP2RouteOutsideOfInitialView smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-`; - -exports[`RouteViewerOverlay WithChangingPath smoke-test 1`] = `
`; - -exports[`RouteViewerOverlay WithPathStyling smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-`; diff --git a/packages/stop-viewer-overlay/src/StopViewerOverlay.story.tsx b/packages/stop-viewer-overlay/src/StopViewerOverlay.story.tsx index 2c4a94fe18..7c2db08a58 100644 --- a/packages/stop-viewer-overlay/src/StopViewerOverlay.story.tsx +++ b/packages/stop-viewer-overlay/src/StopViewerOverlay.story.tsx @@ -15,6 +15,8 @@ const fakeStop = { name: "Fake Stop" }; +const disableStoryshots = { storyshots: { disable: true } }; + function CustomMarker({ stop }: StopContainer) { return ; } @@ -28,6 +30,7 @@ export default { export const Default = (): JSX.Element => ( ); +Default.parameters = disableStoryshots; const WithCustomMarker = (): JSX.Element => ( @@ -44,5 +47,8 @@ const disableA11yParameters = { } }; -WithCustomMarker.parameters = disableA11yParameters; +WithCustomMarker.parameters = { + ...disableA11yParameters, + ...disableStoryshots +}; export { WithCustomMarker }; diff --git a/packages/stop-viewer-overlay/src/__snapshots__/StopViewerOverlay.story.tsx.snap b/packages/stop-viewer-overlay/src/__snapshots__/StopViewerOverlay.story.tsx.snap deleted file mode 100644 index 73acae0d6b..0000000000 --- a/packages/stop-viewer-overlay/src/__snapshots__/StopViewerOverlay.story.tsx.snap +++ /dev/null @@ -1,211 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`StopViewerOverlay Default smoke-test 1`] = ` -
-
-
- - -
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-`; - -exports[`StopViewerOverlay WithCustomMarker smoke-test 1`] = ` -
-
-
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-`; diff --git a/packages/stops-overlay/src/StopsOverlay.story.tsx b/packages/stops-overlay/src/StopsOverlay.story.tsx index c12fc2b611..fe7cc70e69 100644 --- a/packages/stops-overlay/src/StopsOverlay.story.tsx +++ b/packages/stops-overlay/src/StopsOverlay.story.tsx @@ -8,6 +8,7 @@ import { withMap } from "../../../.storybook/base-map-wrapper"; import StopsOverlay, { StopProps } from "."; const center: [number, number] = [45.523092, -122.671202]; +const disableStoryshots = { storyshots: { disable: true } }; const Example = ({ highlightedStop = "8338", @@ -36,6 +37,7 @@ export default { }; export const Default = () => ; +Default.parameters = disableStoryshots; export const NoMinZoom = () => ( <> @@ -45,6 +47,7 @@ export const NoMinZoom = () => ( ); +NoMinZoom.parameters = disableStoryshots; // TODO: Re-add, and add support for old story // export const WithCustomMarkers = () => ; @@ -57,4 +60,5 @@ export const FlexStops = () => ( /> ); +FlexStops.parameters = disableStoryshots; FlexStops.decorators = [withMap([33.85, -84.61], 10)]; diff --git a/packages/stops-overlay/src/__snapshots__/StopsOverlay.story.tsx.snap b/packages/stops-overlay/src/__snapshots__/StopsOverlay.story.tsx.snap deleted file mode 100644 index 5873a6936c..0000000000 --- a/packages/stops-overlay/src/__snapshots__/StopsOverlay.story.tsx.snap +++ /dev/null @@ -1,207 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`StopsOverlay Default smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-`; - -exports[`StopsOverlay FlexStops smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-
-`; - -exports[`StopsOverlay NoMinZoom smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
- - With MapLibreGL, strong performance can be achieved without needing to rely on minZoom - -
-
-`; diff --git a/packages/transit-vehicle-overlay/src/__snapshots__/index.story.tsx.snap b/packages/transit-vehicle-overlay/src/__snapshots__/index.story.tsx.snap deleted file mode 100644 index fa2ea3539c..0000000000 --- a/packages/transit-vehicle-overlay/src/__snapshots__/index.story.tsx.snap +++ /dev/null @@ -1,1385 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`TransitVehicleOverlay CustomModeIcon smoke-test 1`] = ` -
-
-
- - -
- -
- - - - - - - - - - - - -
-
-
-
- -
- - - - - - - - -
-
-
-
-
-
- -
- - - - - - - - - - - - -
-
-
-
-
-
- -
- - - FHH - - -
-
-
-
-
-
- -
- - - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-`; - -exports[`TransitVehicleOverlay Default smoke-test 1`] = ` -
-
-
- - -
- -
- - - - -
-
-
-
- -
- - - - -
-
-
-
-
-
- -
- - - - -
-
-
-
-
-
- -
- - - FHH - - -
-
-
-
-
-
- -
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-`; - -exports[`TransitVehicleOverlay DefaultRouteColorWhenVehicleRouteColorAbsent smoke-test 1`] = ` -
-
-
- - -
- -
- - - - -
-
-
-
- -
- - - - -
-
-
-
-
-
- -
- - - - -
-
-
-
-
-
- -
- - - FHH - - -
-
-
-
-
-
- -
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-`; - -exports[`TransitVehicleOverlay InnerCaret smoke-test 1`] = ` -
-
-
- - -
- -
- - - - -
-
-
-
- -
- - - - -
-
-
-
-
-
- -
- - - - -
-
-
-
-
-
- -
- - - FHH - - -
-
-
-
-
-
- -
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-`; - -exports[`TransitVehicleOverlay OuterCaretWithCustomSize smoke-test 1`] = ` -
-
-
- - -
- -
- - - - -
-
-
-
- -
- - - - -
-
-
-
-
-
- -
- - - - -
-
-
-
-
-
- -
- - - FHH - - -
-
-
-
-
-
- -
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-`; - -exports[`TransitVehicleOverlay RotatingIconsNoCaret smoke-test 1`] = ` -
-
-
- - -
- -
- - - - -
-
-
-
- -
- - - - -
-
-
-
- -
- - - - -
-
-
-
- -
- - - FHH - - -
-
-
-
- -
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-`; - -exports[`TransitVehicleOverlay RouteColorBackground smoke-test 1`] = ` -
-
-
- - -
- -
- - - - -
-
-
-
- -
- - - - -
-
-
-
-
-
- -
- - - - -
-
-
-
-
-
- -
- - - FHH - - -
-
-
-
-
-
- -
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-`; - -exports[`TransitVehicleOverlay RouteColorBackgroundWithInnerCaret smoke-test 1`] = ` -
-
-
- - -
- -
- - - - -
-
-
-
- -
- - - - -
-
-
-
-
-
- -
- - - - -
-
-
-
-
-
- -
- - - FHH - - -
-
-
-
-
-
- -
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-`; - -exports[`TransitVehicleOverlay RouteColorBackgroundWithTransparencyOnHover smoke-test 1`] = ` -
-
-
- - -
- -
- - - - -
-
-
-
- -
- - - - -
-
-
-
-
-
- -
- - - - -
-
-
-
-
-
- -
- - - FHH - - -
-
-
-
-
-
- -
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-`; - -exports[`TransitVehicleOverlay RouteNumbersOnlyWithCustomSizeAndPadding smoke-test 1`] = ` -
-
-
- - -
- -
- - - FH - - -
-
-
-
- -
- - - FH - - -
-
-
-
-
-
- -
- - - FH - - -
-
-
-
-
-
- -
- - - FHH - - -
-
-
-
-
-
- -
- - - FH - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-`; diff --git a/packages/transit-vehicle-overlay/src/index.story.tsx b/packages/transit-vehicle-overlay/src/index.story.tsx index cb7b754121..964a852f7a 100644 --- a/packages/transit-vehicle-overlay/src/index.story.tsx +++ b/packages/transit-vehicle-overlay/src/index.story.tsx @@ -12,6 +12,8 @@ import TransitVehicleOverlay, { withRouteColorBackground } from "."; +const disableStoryshots = { storyshots: { disable: true } }; + const SEATTLE: [number, number] = [47.6, -122.3]; // TODO: TransitVehicle[] type doesn't match vehicles object @@ -52,14 +54,6 @@ export const OuterCaretWithCustomSize = () => ( /> ); -export const RouteColorBackground = () => ( - -); - export const RouteColorBackgroundWithTransparencyOnHover = () => ( ( export default { title: "TransitVehicleOverlay", component: TransitVehicleOverlay, + parameters: disableStoryshots, decorators: [withMap(SEATTLE, 12)] }; diff --git a/packages/transitive-overlay/src/TransitiveOverlay.story.tsx b/packages/transitive-overlay/src/TransitiveOverlay.story.tsx index a7c7603bff..d79b720abd 100644 --- a/packages/transitive-overlay/src/TransitiveOverlay.story.tsx +++ b/packages/transitive-overlay/src/TransitiveOverlay.story.tsx @@ -49,7 +49,8 @@ function getToLocation(itinerary) { export default { title: "TransitiveOverlay", decorators: [withMap()], - component: TransitiveOverlay + component: TransitiveOverlay, + parameters: { storyshots: { disable: true } } }; export const Empty = (): JSX.Element => ( diff --git a/packages/transitive-overlay/src/__snapshots__/TransitiveOverlay.story.tsx.snap b/packages/transitive-overlay/src/__snapshots__/TransitiveOverlay.story.tsx.snap deleted file mode 100644 index 5fdd9b6e32..0000000000 --- a/packages/transitive-overlay/src/__snapshots__/TransitiveOverlay.story.tsx.snap +++ /dev/null @@ -1,2757 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`TransitiveOverlay BikeOnlyItinerary smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
- - -
- - - - -
-
- - - - -
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-
-
-
-`; - -exports[`TransitiveOverlay BikeRentalItinerary smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
- - -
- - - - -
-
- - - - -
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-
-
-
-`; - -exports[`TransitiveOverlay BikeRentalTransitItinerary smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
- - -
- - - - -
-
- - - - -
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-
-
-
-`; - -exports[`TransitiveOverlay BikeTransitBikeItinerary smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
- - -
- - - - -
-
- - - - -
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-
-
-
-`; - -exports[`TransitiveOverlay EScooterRentalItinerary smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
- - -
- - - - -
-
- - - - -
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-
-
-
-`; - -exports[`TransitiveOverlay EScooterRentalTransitItinerary smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
- - -
- - - - -
-
- - - - -
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-
-
-
-`; - -exports[`TransitiveOverlay Empty smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-`; - -exports[`TransitiveOverlay FlexItinerary smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
- - -
- - - - -
-
- - - - -
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-
-
-
-`; - -exports[`TransitiveOverlay OTP2ScooterItinerary smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
- - -
- - - - -
-
- - - - -
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-
-
-
-`; - -exports[`TransitiveOverlay ParkAndRideItinerary smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
- - -
- - - - -
-
- - - - -
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-
-
-
-`; - -exports[`TransitiveOverlay TncTransitItinerary smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
- - -
- - - - -
-
- - - - -
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-
-
-
-`; - -exports[`TransitiveOverlay WalkInterlinedTransitItinerary smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
- - -
- - - - -
-
- - - - -
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-
-
-
-`; - -exports[`TransitiveOverlay WalkTransitTransferItinerary smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
- - -
- - - - -
-
- - - - -
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-
-
-
-`; - -exports[`TransitiveOverlay WalkTransitWalkItinerary smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
- - -
- - - - -
-
- - - - -
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-
-
-
-`; - -exports[`TransitiveOverlay WalkTransitWalkItineraryWithNoIntermediateStops smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
- - -
- - - - -
-
- - - - -
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-
-
-
-`; - -exports[`TransitiveOverlay WalkingItinerary smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
- - -
- - - - -
-
- - - - -
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-
-
-
-
-`; diff --git a/packages/trip-form/src/__snapshots__/TripOptions.story.tsx.snap b/packages/trip-form/src/__snapshots__/TripOptions.story.tsx.snap index 8012655f1c..7ae8e6bee9 100644 --- a/packages/trip-form/src/__snapshots__/TripOptions.story.tsx.snap +++ b/packages/trip-form/src/__snapshots__/TripOptions.story.tsx.snap @@ -339,202 +339,6 @@ exports[`TripOptions CompanyFirstMixedCategory smoke-test 1`] = `
`; -exports[`TripOptions CustomIconsAndCloseButton smoke-test 1`] = ` - -
-
- - - - - - -
-
-
-
-
- -
-
- -
-
-
-
- - - -
-
-
-`; - exports[`TripOptions Default smoke-test 1`] = `
diff --git a/packages/trip-viewer-overlay/src/TripViewerOverlay.story.tsx b/packages/trip-viewer-overlay/src/TripViewerOverlay.story.tsx index 7f307c0f47..11a3f7b5e8 100644 --- a/packages/trip-viewer-overlay/src/TripViewerOverlay.story.tsx +++ b/packages/trip-viewer-overlay/src/TripViewerOverlay.story.tsx @@ -10,7 +10,8 @@ const zoom = 12; export default { title: "TripViewerOverlay", component: TripViewerOverlay, - decorators: [withMap(center, zoom)] + decorators: [withMap(center, zoom)], + parameters: { storyshots: { disable: true } } }; export const Default = (): JSX.Element => ( diff --git a/packages/trip-viewer-overlay/src/__snapshots__/TripViewerOverlay.story.tsx.snap b/packages/trip-viewer-overlay/src/__snapshots__/TripViewerOverlay.story.tsx.snap deleted file mode 100644 index 41e94065a5..0000000000 --- a/packages/trip-viewer-overlay/src/__snapshots__/TripViewerOverlay.story.tsx.snap +++ /dev/null @@ -1,83 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`TripViewerOverlay Default smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-`; - -exports[`TripViewerOverlay WithPathStyling smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-`; diff --git a/packages/vehicle-rental-overlay/src/VehicleRentalOverlay.story.tsx b/packages/vehicle-rental-overlay/src/VehicleRentalOverlay.story.tsx index 9b0a4cfd9a..4fae6e9c47 100644 --- a/packages/vehicle-rental-overlay/src/VehicleRentalOverlay.story.tsx +++ b/packages/vehicle-rental-overlay/src/VehicleRentalOverlay.story.tsx @@ -69,9 +69,9 @@ function customStationName(_, station) { export default { title: "VehicleRentalOverlay", component: VehicleRentalOverlay, - decorators: [withMap(center, INITIAL_ZOOM)] + decorators: [withMap(center, INITIAL_ZOOM)], + parameters: { storyshots: { disable: true } } }; - export const RentalBicycles = () => ( -
-
- - -
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-`; - -exports[`VehicleRentalOverlay RentalBicyclesVisibilityControlledByKnob smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-`; - -exports[`VehicleRentalOverlay RentalCars smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-`; - -exports[`VehicleRentalOverlay RentalEScooters smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-`; - -exports[`VehicleRentalOverlay RentalEScootersWithCustomNaming smoke-test 1`] = ` -
-
-
- - -
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-`; diff --git a/packages/zoom-based-markers/src/ZoomBasedMarker.story.tsx b/packages/zoom-based-markers/src/ZoomBasedMarker.story.tsx index bb6ffea477..40d44cb100 100644 --- a/packages/zoom-based-markers/src/ZoomBasedMarker.story.tsx +++ b/packages/zoom-based-markers/src/ZoomBasedMarker.story.tsx @@ -143,7 +143,8 @@ const Example = (props: ExampleProps) => { export default { title: "ZoomBasedMarkers", - component: ZoomBasedMarkers + component: ZoomBasedMarkers, + parameters: { storyshots: { disable: true } } }; export const SymbolsForDifferentZoomLevels = () => ( diff --git a/packages/zoom-based-markers/src/__snapshots__/ZoomBasedMarker.story.tsx.snap b/packages/zoom-based-markers/src/__snapshots__/ZoomBasedMarker.story.tsx.snap deleted file mode 100644 index 56a2fac9a9..0000000000 --- a/packages/zoom-based-markers/src/__snapshots__/ZoomBasedMarker.story.tsx.snap +++ /dev/null @@ -1,163 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`ZoomBasedMarkers SymbolsForDifferentZoomLevels smoke-test 1`] = ` -
-
-
- - -
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-`; - -exports[`ZoomBasedMarkers TransformedSymbols smoke-test 1`] = ` -
-
-
- - -
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
- - -
- (modified) © - - CARTO - - , © - - OpenStreetMap - - contributors -
-
-
-
-
-
-`;