cds-snc / platform-forms-client

NextJS application that serves the public-facing website for Forms
https://forms-staging.cdssandbox.xyz/
MIT License
34 stars 13 forks source link

More Modal Not Updating Page State w/ Groups #3867

Closed ShadeWyrm closed 3 months ago

ShadeWyrm commented 3 months ago

When using the "More" modal for Form Elements, the properties are updated in the template store, but the page state doesn't update.

This means the cypress test (in formbuilder.cy.ts): cy.get("#required-1-id").should("be.checked"); fails, because while the value was set in the template store, the UI never updates the required checkbox on the main page.

The issue was found when reviewing PR : https://github.com/cds-snc/platform-forms-client/pull/3853 (and is related, but not caused by it)