Closed TheNoodleMoose closed 2 years ago
Seems like this new function might warrant a test.
@wrandall22 This whole controller actually didn't have any tests so went ahead and created a spec for it.
@wrandall22 thanks for the review and comments! This is on staging and working, so if everything looks good I can merge.
Interesting bug, basically a page now only renders if it has valid questions based on registrant type after my rework. But the question and answer rules also affect this. If an answer to a question causes another question to be visible on another page and the page wasn't valid before, AND that page is the next page, it basically would be skipped if you pressed 'Next Page'. But now we are continually checking valid pages as they navigate to the next page. I don't think this is needed for navigating back as rules shouldn't apply to previous pages.