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

UIIN-2371: Fixing tests due to changes in react-virtualized-auto-sizer. #2087

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

Dmytro-Melnyshyn
Copy link
Contributor

@Dmytro-Melnyshyn Dmytro-Melnyshyn commented Mar 28, 2023

Description

Tests are failing in apps due to a recent change in react-virtualized-auto-sizer.
We shouldn't mock offsetHeight via mockOffsetSize because it is no longer relevant (43).
Just mock react-virtualized-auto-sizer itself.

Issues

UIIN-2371

Approach

TODOS and Open Questions

Learning

Pre-Merge Checklist

Before merging this PR, please go through the following list and take appropriate actions.

  • I've added appropriate record to the CHANGELOG.md
  • Does this PR meet or exceed the expected quality standards?
    • Code coverage on new code is 80% or greater
    • Duplications on new code is 3% or less
    • There are no major code smells or security issues
  • Does this introduce breaking changes?
    • If any API-related changes - okapi interfaces and permissions are reviewed/changed correspondingly
    • There are no breaking changes in this PR.

If there are breaking changes, please STOP and consider the following:

  • What other modules will these changes impact?
  • Do JIRAs exist to update the impacted modules?
    • If not, please create them
    • Do they contain the appropriate level of detail? Which endpoints/schemas changed, etc.
    • Do they have all they appropriate links to blocked/related issues?
  • Are the JIRAs under active development?
    • If not, contact the project's PO and make sure they're aware of the urgency.
  • Do PRs exist for these changes?
    • If so, have they been approved?

Ideally all of the PRs involved in breaking changes would be merged in the same day to avoid breaking the folio-testing environment. Communication is paramount if that is to be achieved, especially as the number of intermodule and inter-team dependencies increase.

While it's helpful for reviewers to help identify potential problems, ensuring that it's safe to merge is ultimately the responsibility of the PR assignee.

@github-actions
Copy link

github-actions bot commented Mar 28, 2023

BigTest Unit Test Statistics

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ±0 

Results for commit 4504ca0. ± Comparison against base commit 9ed626e.

♻️ This comment has been updated with latest results.

@Dmytro-Melnyshyn Dmytro-Melnyshyn changed the title UIIN-2371: Fixing tests due to changes in react-virtualized-auto-sizer. UIIN-2371: Fixing tests due to changes in react-virtualized-auto-sizer. Mar 28, 2023
@github-actions
Copy link

Jest Unit Test Statistics

    1 files  ±0  163 suites  ±0   5m 0s ⏱️ - 2m 18s
496 tests ±0  496 ✔️ +23  0 💤 ±0  0  - 23 
500 runs  ±0  500 ✔️ +23  0 💤 ±0  0  - 23 

Results for commit 4504ca0. ± Comparison against base commit 9ed626e.

@sonarcloud
Copy link

sonarcloud bot commented Mar 28, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@Dmytro-Melnyshyn Dmytro-Melnyshyn merged commit 3feac9f into master Mar 28, 2023
@zburke zburke deleted the UIIN-2371 branch April 3, 2023 02:28
OleksandrHladchenko1 added a commit that referenced this pull request Apr 3, 2023
* Release v9.4.2

* UIIN-2364: Fix the query templates for searching by subject. (#2072)

* UIIN-2347: Record count for "Subjects" doesn't match at browse and search result panes (#2068)

* UIIN-2347: Changed a query for a subject request

* UIIN-2347: Added a changelog

* UIIN-2347: Fix tests

* UIIN-2347: Changed a query for a subject filter request

* UIIN-2351: Correctly reset facet state when  icon next to the facet label is clicked (#2073)

* Release v9.4.3

* UIIN-2371: Fixing tests due to changes in eact-virtualized-auto-sizer. (#2087)

* UIIN-2343: Update success messages for ISRI

* UIIN-2359: Retain searches and offsets in session storage, so they don't show up in other browser tabs, and clean them up after logging out.

* Release v9.4.4

* delete unnecessary test

* fix stripes-core path

* Lokalise: updates

(cherry picked from commit 3183389)

* Release v9.4.5

* Update zh_CN.json

* Update zh_CN.json

* Update zh_CN.json

---------

Co-authored-by: Michal Kuklis <michal.kuklis@gmail.com>
Co-authored-by: Dmytro-Melnyshyn <77053927+Dmytro-Melnyshyn@users.noreply.github.com>
Co-authored-by: daniil-patckin <124583895+daniil-patckin@users.noreply.github.com>
Co-authored-by: Mariia Aloshyna <55138456+mariia-aloshyna@users.noreply.github.com>
Co-authored-by: Dmytro-Melnyshyn <Dmytro_Melnyshyn@epam.com>
Co-authored-by: FOLIO Translations Bot <38661258+folio-translations@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants