newjersey / navigator.business.nj.gov

NJ Office of Innovation is building a one-stop dashboard to better help New Jerseyans with starting and managing a business
https://business.nj.gov
16 stars 1 forks source link

Update Domestic Employer experience to account for Guest Mode #8564

Closed jphechter closed 1 month ago

jphechter commented 1 month ago

Description

While QAing #8534 we found out the domestic employer guest mode experience had not been covered. This work shifts from using the Domestic Employer operating phase as a control, and looks at the industry id. There's probably a better way to go about this, see notes.

Ticket

This pull request resolves #188193453.

Approach

Shifted from checking the current operating phase to checking the industry-id in order to account for Guest Mode operating phases.

Steps to Test

see #8534 for detailed steps to test - The only addition is that a user in Guest Mode should experience the same behaviors.

Notes

In looking at this a little further, I stumbled across some logic in the roadmapBuilder.ts that I hadn't considered before. Specifically, thinking about how it adds foreign-business steps. Given the Domestic Employer work required creating a new roadmap section, this may not be enough control, but it did get me thinking that there might be a better way to handle these changes.

Code author checklist