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

Poulter/APPEALS-46624-react-18-upgrade-final (#23333) #23334

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

hawkespoulterva
Copy link

Resolves:

Update React 18. The biggest changes here are removing enzyme in favor of React Test Library and adjusting some components to still work with concurrent rendering introduced by createRoot.


Test Plans:

* react 18 test upgrade

* styled-components

* EditPOAInformation test refactor, in progrss NonratingRIUModal test

* additional tests refactored

* Refactors Enzyme -> RTL

* more changes

* Enzyme -> RTL refactors (cont)

* Enzyme -> RTL refactor (cont)

* Enzyme -> RTL refactor (cont)

* Enzyme -> RTL refactor (cont)

* Enzyme -> RTL refactor (cont)

* Cherry-picking from v2 branch --cont

* fixed badge test

* Enzyme -> RTL (establishClaim-test)

* Enzyme -> RTL (cont, Batch 3)

* Batch 3 refactor cont

* Batch 3 In Progress

* Batch 3 to review

* Batch 4 updates

* ScheduleVeteran.test refactor finished

* Batch 4 and cleanups

* Batch 4 continued

* Outstanding Enzyme -> RTL refactors

* batch 4 changes and non used enzyme test removal

* clean up

* snapshot and failing test clean up

* Test updates and Snapshot fixes

* Package updates with a couple fixed tests

* Make test less brittle

* switch to for...of instead of forEach to fix async problems

* remove unnecessary
import

* lint fixes

* disable linters

* APPEALS-55525: Disable tests for seed files and lock Chrome version to v127 in Github Actions (#22567)

* add exclude pattern to github actions rspec command

* add test file exclude pattern constant

* lock chrome version to 127.0.6533.119

* React Dependency upgrade

* force wepback-bundle.js

* Fix for bva_dispatch_return_flow_spec

* fixed spec method to click pdf

* Fixed task_queue_spec.rb

* add indicated_for_contested_claims flag to legacy appeals

* update legacy appeal spec

* fix for scm_judge_assignment_spec.rb

* force state update

* fixed admin_ui_spec.rb

* fixed user_organization_spec.rb

* flow modal refactor to functional component and fix state renders, remove null saveSuccessful

* fixed motion_to_vacate_spec.rb

* revert changes

* revert all changes

* stop letting null pass

* revert more changes

* test null condition

* comment

* revert test

* add flushsync

* remove enzyme and update snapshots

* fixed EmailConfirmationModal.test.js

* fixed NonratingRequestIssueModal-test.js

* fixed Timezone.test.js

* fixed ScheduleVeteranForm.test.js

* fixed HearingTime.test.js

* fixed IssueTags.test.js

* linting

* updated daily_docket_spec.rb

* fix duplicated code for code climate

* fix more shared test setup

* hopefully the last duplicate code

* remove sleeps

* update for daily_docket_spec.rb

* add flush sync and add initialState back in

* added waits to vso_change_hearing_request_type_spec.rb

* remove legacy appeal flag

* Remove debugging statement

* revert change spec and fix state sync

* remove file changes

* fix snapshot

* Merge branch 'main' into Poulter/46624-react-18-upgrade-1

* fixed tests

* revert unnecesarry change

* remove old spec changes

* fix syncable job

* update ftk reference

* snapshot fix

---------

Co-authored-by: Griffin Dooley <dooleygriffin@gmail.com>
Co-authored-by: AdamShawBAH <adam.shaw@va.gov>
Co-authored-by: Craig Reese <109101548+craigrva@users.noreply.github.com>
Copy link

codeclimate bot commented Oct 23, 2024

Code Climate has analyzed commit 1b18b9e and detected 14 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 14

View more on Code Climate.

@sbashamoni sbashamoni changed the title Poulter/appeals 46624 react 18 upgrade final (#23333) Poulter/APPEALS-46624-react-18-upgrade-final (#23333) Oct 23, 2024
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