Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geosolutions-it#10127: update tests to enable react-redux 7.x upwards #10142

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fkellner
Copy link
Contributor

@fkellner fkellner commented Apr 2, 2024

Description

As described in #10127,
this PR updates tests relying on 'render' returning a reference to enable
react-redux 7.x upwards (where some components become stateless and render
no longer returns a reference, even though it was successful).

Basically, for those tests, the indicator if the render function was successful is
no longer that it returns a reference to a class instance, but that the DOM was modified.

For most tests, this basic check is complemented by more in-depth checks, which were
left unchanged.

Rendering the MapViewerCmp did not result in measurable changes to the DOM
(the content of the container div stayed an empty string), so instead,
the new test checks that the onLoad callback function is being called.

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Refactoring (no functional changes, no api changes)

Issue

What is the current behavior?

#10127

What is the new behavior?

Tests still run through regardless of whether react-redux 6.x or 7.x is being used.

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • No

Other useful information

Updates tests relying on 'render' returning a reference to enable
react-redux 7.x upwards (where some components become stateless and render
no longer returns a reference, even though it was successful)

On Behalf of DB Systel
@tdipisa tdipisa requested review from offtherailz and MV88 and removed request for offtherailz April 3, 2024 07:55
@tdipisa tdipisa added this to the 2024.01.01 milestone Apr 3, 2024
@tdipisa tdipisa added External Contribution BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch labels Apr 3, 2024
@tdipisa
Copy link
Member

tdipisa commented Apr 3, 2024

@fkellner thank you so much for your contribution. We will review as soon as possible.

@tdipisa
Copy link
Member

tdipisa commented Apr 4, 2024

@MV88, let's evaluate a possible inclusion in 2024.01.01 (waiting for the review).

@tdipisa tdipisa added BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch and removed BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch labels Apr 4, 2024
@tdipisa tdipisa linked an issue Apr 4, 2024 that may be closed by this pull request
1 task
@tdipisa tdipisa added C206-DEUTSCHE_BAHN-2023-SUPPORT and removed BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch labels Apr 8, 2024
@tdipisa tdipisa removed this from the 2024.01.01 milestone Apr 8, 2024
@tdipisa tdipisa added this to the 2024.02.00 milestone May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Offer to upgrade tests to support a higher version of react-redux
2 participants