Skip to content

PB-481: bugfix apply transparency instead of opacity#827

Merged
ltkum merged 5 commits intodevelopfrom
bugfix-PB-481-reverse-transparency-slider
May 13, 2024
Merged

PB-481: bugfix apply transparency instead of opacity#827
ltkum merged 5 commits intodevelopfrom
bugfix-PB-481-reverse-transparency-slider

Conversation

@ltkum
Copy link
Contributor

@ltkum ltkum commented May 7, 2024

Issue : On all labels for layers, we mention that we're modifying the transparency, when we are currently modifying the opacity.

fix : we reverse the value on the transparency slider, committing 1 - value to the layer's opacity rather than the value.

Test link

@github-actions github-actions bot added the bug label May 7, 2024
@cypress
Copy link

cypress bot commented May 7, 2024

Passing run #2084 ↗︎

0 203 20 0 Flakiness 0

Details:

removing force click in e2e test
Project: web-mapviewer Commit: 369a977406
Status: Passed Duration: 05:26 💡
Started: May 13, 2024 10:16 AM Ended: May 13, 2024 10:22 AM

Review all test suite changes for PR #827 ↗︎

@ltkum ltkum marked this pull request as ready for review May 7, 2024 18:49
@ltkum ltkum requested a review from ltshb May 7, 2024 18:49
@ltkum ltkum force-pushed the bugfix-PB-481-reverse-transparency-slider branch from fe5b07d to c7486e4 Compare May 13, 2024 07:44
@ltkum ltkum requested a review from ltshb May 13, 2024 07:44
@ltkum ltkum force-pushed the bugfix-PB-481-reverse-transparency-slider branch 2 times, most recently from f353a5c to 4aec6c8 Compare May 13, 2024 09:08
cy.get(`[data-cy="slider-transparency-layer-${timedLayerId}-2"]`)
.should('be.visible')
.realClick()
.realClick({ position: 'right', force: true })
Copy link
Contributor

Choose a reason for hiding this comment

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

Force true is not a good idea why do you need it ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's a leftover from when I was testing. I thought that maybe something was blocking the click. I'm removing it right now.

@ltkum ltkum force-pushed the bugfix-PB-481-reverse-transparency-slider branch from 4aec6c8 to 46d94e5 Compare May 13, 2024 10:13
ltkum added 5 commits May 13, 2024 12:13
Issue : On all labels for layers, we mention that we're modifying the transparency, when we are currently modifying the opacity.

fix : we reverse the value on the transparency slider, committing `1 - value` to the layer's opacity rather than the value.

still TODO : ensure tests work.
Changed the slider data-cy from 'opacity' to 'transparency' for consistency.

with the new margin, one test had problems where clicking in the middle (0.5 opacity) was so close to the original value (0.7 opacity) that it wouldn't register the click to be on another position on the slide.
@ltkum ltkum force-pushed the bugfix-PB-481-reverse-transparency-slider branch from 46d94e5 to 369a977 Compare May 13, 2024 10:13
@ltkum ltkum merged commit cc96497 into develop May 13, 2024
@ltkum ltkum deleted the bugfix-PB-481-reverse-transparency-slider branch May 13, 2024 11:08
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.

2 participants