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-2608: If Shared & Held by facets were selected in the Browse search, then retain them in the Search lookup after clicking the record. #2307

Merged
merged 6 commits into from
Oct 18, 2023

Conversation

Dmytro-Melnyshyn
Copy link
Contributor

@Dmytro-Melnyshyn Dmytro-Melnyshyn commented Oct 13, 2023

Purpose

If Shared & Held by facets were selected in the Browse search, then retain them in the Search lookup after clicking the record.

Approach

Refs

UIIN-2608

Screenshots

2023-10-13_16h47_47.mp4

…rch, then retain them in the Search lookup after clicking the record.
@github-actions
Copy link

github-actions bot commented Oct 13, 2023

Jest Unit Test Statistics

    1 files  ±0  226 suites  ±0   15m 20s ⏱️ + 3m 26s
880 tests +9  878 ✔️ +9  2 💤 ±0  0 ±0 
885 runs  +9  883 ✔️ +9  2 💤 ±0  0 ±0 

Results for commit 7cbac68. ± Comparison against base commit 1b6dca3.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@mariia-aloshyna mariia-aloshyna left a comment

Choose a reason for hiding this comment

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

Fix eslint warnings, please

src/components/BrowseResultsList/utils.js Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
},
});

await act(async () => fireEvent.click(screen.getByText(defaultProps.browseData[2].fullCallNumber)));
Copy link
Contributor

Choose a reason for hiding this comment

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

fireEvent is already wrapped in act as far as I know, do you wrap it because of asynchronous action?

Copy link
Member

Choose a reason for hiding this comment

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

Also worth noting, userEvent > fireEvent most of the time when you want to do something like "click a button". You don't need to rewrite anything here, but consider it the next time you're writing new tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mariia-aloshyna I removed the act wrapper.

@mariia-aloshyna
Copy link
Contributor

Hi @Dmytro-Melnyshyn Not all the eslint warnings are fixed it looks like

@sonarqubecloud
Copy link

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

91.9% 91.9% Coverage
0.0% 0.0% Duplication

@Dmytro-Melnyshyn Dmytro-Melnyshyn merged commit 79771fb into master Oct 18, 2023
4 checks passed
@Dmytro-Melnyshyn Dmytro-Melnyshyn deleted the UIIN-2608 branch October 18, 2023 18:47
mariia-aloshyna pushed a commit that referenced this pull request Nov 3, 2023
…rch, then retain them in the Search lookup after clicking the record. (#2307)

(cherry picked from commit 79771fb)
mariia-aloshyna added a commit that referenced this pull request Nov 3, 2023
* UIIN-2453: Instance 3rd pane: Adjust behaviour when returning to instance from holdings/item full screen (#2305)

(cherry picked from commit b7c19d1)

* UIIN-2629: Consortial holdings accordion is not appearing after the sharing of Instance (#2312)

(cherry picked from commit e03476f)

* UIIN-2531 Reset CheckboxFacet state.more when user resets search form and fewer facet options are loaded. (#2310)

(cherry picked from commit 749fead)

* UIIN-2588: Edit instance success toast no longer shows the instance HRID (#2313)

(cherry picked from commit dc738d2)

* UIIN-2533: Show facet options, if they exist, after clicking the +More button. (#2309)

(cherry picked from commit 1b6dca3)

* UIIN-2608: If Shared & Held by facets were selected in the Browse search, then retain them in the Search lookup after clicking the record. (#2307)

(cherry picked from commit 79771fb)

* UIIN-2600: Remove error message after switch from Instance Edit screen to another app (#2311)

(cherry picked from commit 3411d72)

* Release v10.0.1

---------

Co-authored-by: Denys Bohdan <[email protected]>
Co-authored-by: Dmytro-Melnyshyn <[email protected]>
Co-authored-by: Oleksandr Hladchenko <[email protected]>
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.

4 participants