Skip to content

Conversation

@sommerfe
Copy link
Contributor

@sommerfe sommerfe commented Nov 21, 2025

@sommerfe sommerfe self-assigned this Nov 21, 2025
@sommerfe sommerfe changed the base branch from develop to feat-PB-1383-pinia-store November 21, 2025 14:03
@github-actions github-actions bot added the bug label Nov 21, 2025
@cypress
Copy link

cypress bot commented Nov 21, 2025

web-mapviewer    Run #6140

Run Properties:  status check errored Errored #6140  •  git commit 5505e3211e: PB-2064: run all tests
Project web-mapviewer
Branch Review fix-pb-2064-importtoolmaps-cypress-test
Run status status check errored Errored #6140
Run duration 22m 16s
Commit git commit 5505e3211e: PB-2064: run all tests
Committer Felix Sommer
View all properties for this run ↗︎

Test results
Tests that failed  Failures 67
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 19
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 140
View all changes introduced in this branch ↗︎

Tests for review

Failed  3d/layers.cy.ts • 1 failed test • e2e/chrome/mobile

View Output

Test Artifacts
An uncaught error was detected outside of a test Test Replay Screenshots
Failed  drawing.cy.ts • 1 failed test • e2e/chrome/mobile

View Output

Test Artifacts
An uncaught error was detected outside of a test Test Replay Screenshots
Failed  changeLanguage.cy.ts • 3 failed tests • e2e/chrome/mobile

View Output

Test Artifacts
Change language > on startup > should show the correct language if we ask for it, even if the param is in uppercase Test Replay Screenshots
Change language > in mobile view > should change the language Test Replay Screenshots
Change language > in desktop view > should change the language Test Replay Screenshots
Failed  layers.cy.ts • 11 failed tests • e2e/chrome/mobile

View Output

Test Artifacts
Test of layer handling > Layer in URL at app startup > adds a layers with config to the map when opening the app layers URL param Test Replay Screenshots
Test of layer handling > Layer in URL at app startup > uses the default timestamp of a time enabled layer when not specified in the URL Test Replay Screenshots
Test of layer handling > Layer in URL at app startup > sets the timestamp of a layer when specified in the layers URL param Test Replay Screenshots
... > reads and adds an external WMS correctly Test Replay Screenshots
... > reads and adds an external WMTS correctly Test Replay Screenshots
... > reads and adds an external WMTS correctly but doesn't show the invisible layer Test Replay Screenshots
Test of layer handling > Background layer in URL at app startup > sets the background to the void layer if we set the bgLayer parameter to "void" Test Replay Screenshots
Test of layer handling > Background layer in URL at app startup > sets the background to the topic default if none is defined in the URL, even if a layer (out of topic scope) is defined in it Test Replay Screenshots
... > layer with timestamp can be configured Test Replay Screenshots
... > Reorder layers using the "move" button Test Replay Screenshots
The first 10 failed tests are shown, see all 11 tests in Cypress Cloud.
Failed  shareShortLink.cy.ts • 1 failed test • e2e/chrome/mobile

View Output

Test Artifacts
An uncaught error was detected outside of a test Test Replay Screenshots

The first 5 failed specs are shown, see all 23 specs in Cypress Cloud.

@sommerfe sommerfe force-pushed the fix-pb-2064-importtoolmaps-cypress-test branch 5 times, most recently from 7f1a2dd to 2237171 Compare November 27, 2025 14:54
@sommerfe sommerfe requested a review from pakb November 27, 2025 16:36
layerOrLayerId: WMSCapabilityLayer | string,
options?: ExternalLayerParsingOptions<ExternalWMSLayer>
options?: ExternalLayerParsingOptions<ExternalWMSLayer>,
parentsArray?: WMSCapabilityLayer[],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could this parentsArray be added to the options bag? would keep the signature cleaner IMHO

Comment on lines +52 to +54
const humanReadableCurrentTimestamp = computed<string>(() => renderHumanReadableTimestamp(
timeConfig.currentTimeEntry as LayerTimeConfigEntry & { year: string }
))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you be 100% sure timeConfig.currentTimeEntry is defined in this context? Is there a guard (or v-if) somewhere that checks that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the function renderHumanReadableTimestamp handles an undefined value already, but I will add an ? to the function parameter to make clear that the parameter is optional

* an "id" constant.
*
* @param {any} el Reference to the element
* @param {Element | ComponentPublicInstance | null} el Reference to the element
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no need to type the JSDoc, you can remove all type related definition there as it will be derived from the TS code anyway

:ref="addRefBySectionId"
:compact="compact"
@open-menu-section="onOpenMenuSection"
@close-menu-section="onCloseMenuSection"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is that normal that you removed the handler here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it is never called and never used

title="3D"
secondary
@open-menu-section="onOpenMenuSection"
@close-menu-section="onCloseMenuSection"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, aren't we losing some functionality with that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same it is never called and never used

Comment on lines 164 to 165
cy.wrap(center[0]).should('be.closeTo', expectedCenter[0], 50)
cy.wrap(center[1]).should('be.closeTo', expectedCenter[1], 50)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

50 meters out is quite the big leap from 5 meters.
Did it not pass with the 5 meter delta?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no it didn't, i can check again if i can reduce it or why it is 50m off

Comment on lines 24 to 26
return !!EXTERNAL_PROVIDER_WHITELISTED_URL_REGEXES.find(
(regex) => !!layerBaseUrl.match(regex)
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return !!EXTERNAL_PROVIDER_WHITELISTED_URL_REGEXES.find(
(regex) => !!layerBaseUrl.match(regex)
)
return EXTERNAL_PROVIDER_WHITELISTED_URL_REGEXES.some(
(regex) => !!layerBaseUrl.match(regex)
)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For which case did you require that? we aren't running this package "alone" outside of unit tests, so my gut feeling is that we shouldn't need that here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when i didn't have this there, importing certain wmts layers from the import maps tool did not work because certain projections were missing

@sommerfe sommerfe force-pushed the fix-pb-2064-importtoolmaps-cypress-test branch from 2237171 to a34b939 Compare December 1, 2025 15:55
@sommerfe sommerfe requested a review from pakb December 2, 2025 07:35
@sommerfe sommerfe force-pushed the feat-PB-1383-pinia-store branch 2 times, most recently from a1cccff to 9e6d8d7 Compare December 2, 2025 08:43
@sommerfe sommerfe force-pushed the fix-pb-2064-importtoolmaps-cypress-test branch from 8334cc5 to ded5cad Compare December 2, 2025 14:52
@sommerfe sommerfe force-pushed the fix-pb-2064-importtoolmaps-cypress-test branch from bf0add8 to 5505e32 Compare December 4, 2025 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants