Skip to content

PB 113: Legacy test coverage#698

Merged
ltkum merged 3 commits intodevelopfrom
PB-113-legacy-test-coverage
Mar 12, 2024
Merged

PB 113: Legacy test coverage#698
ltkum merged 3 commits intodevelopfrom
PB-113-legacy-test-coverage

Conversation

@ltkum
Copy link
Contributor

@ltkum ltkum commented Mar 12, 2024

We are adding tests for every official legacy parameter

Only missing now :
bod-layer-id and showTooltip which are part of PB-190
time which is not yet implemented and will be part of PB-307

Test link

@cypress
Copy link

cypress bot commented Mar 12, 2024

Passing run #1088 ↗︎

0 171 22 0 Flakiness 0

Details:

PB-113: removing tests for parameter which did not change between legacy and cur...
Project: web-mapviewer Commit: 87ead253ea
Status: Passed Duration: 04:00 💡
Started: Mar 12, 2024 4:09 PM Ended: Mar 12, 2024 4:13 PM

Review all test suite changes for PR #698 ↗︎

@ltkum ltkum force-pushed the PB-113-legacy-test-coverage branch from 788abfd to 303f3e5 Compare March 12, 2024 08:52
@ltkum ltkum requested a review from ltshb March 12, 2024 08:58
ltkum added 2 commits March 12, 2024 14:49
The goal here is to ensure all legacy parameters translate to their
current counterparts. The tests do not have to be too thorough, as we
are already testing those parameters in their current implementation.
PB-113: small correcton to WMS external legacy test

remove comments
@ltkum ltkum force-pushed the PB-113-legacy-test-coverage branch from 303f3e5 to 1e02cda Compare March 12, 2024 13:49
Comment on lines +445 to +448
it('sets the language correctly', () => {
cy.goToMapView({ lang: 'it' }, false)
cy.readStoreValue('state.i18n.lang').should('eq', 'it')
})
Copy link
Contributor

Choose a reason for hiding this comment

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

Dito lang is not a legacy parameter and is already tested, we should remove it from here to keep the number of it() low

Comment on lines +495 to +497
cy.readStoreValue('state.ui.width').then((width) => {
cy.wrap(slider.position()['left']).should('eq', width * 0.3 - 20)
})
Copy link
Contributor

Choose a reason for hiding this comment

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

Use .should((width)=>{}) construct instead with expect this ensure retries until the assertion is true

@ltkum ltkum force-pushed the PB-113-legacy-test-coverage branch from 59dc5b6 to 667575a Compare March 12, 2024 15:56
@ltkum ltkum requested a review from ltshb March 12, 2024 15:57
…acy and current viewer

remove cy call from the should callback

removed no longer needed import
@ltkum ltkum force-pushed the PB-113-legacy-test-coverage branch from 667575a to 87ead25 Compare March 12, 2024 16:07
@ltkum ltkum merged commit 5964a9c into develop Mar 12, 2024
@ltkum ltkum deleted the PB-113-legacy-test-coverage branch March 12, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants