aqualinkorg / aqualink-app

Aqualink.org Ocean Monitoring Application
MIT License
34 stars 12 forks source link

Fix survey form validation #929

Closed echaidemenos closed 12 months ago

echaidemenos commented 1 year ago

Fixes a bug where new survey form validation would always fail.

github-actions[bot] commented 1 year ago

Build succeeded and deployed at https://aqualink-app-929.surge.sh (hash 2ac064b02ccf0f7d9cf59a701832693a1db4ce8a deployed at 2023-10-10T15:05:43)

ericboucher commented 12 months ago

@echaidemenos the problem with the test is that the mui Button is mocked in setupTest, so the Next button that you fetch in your test is basically empyty. You would need to unmock the button for that particular test. Have a go at it but if you can't figure it out let's open an issue for another time.