Commit f179dee
committed
fix(web): resolve AddProbeModalWizard validation and test timeout
This fixes a double-advance bug in the AddProbeModalWizard by changing the Formik onSubmit handler to noop, so the nextStep() isn't called twice. It also fixes the validation regex for time units to allow empty optional fields, and updates a test matcher to account for lowercase translation text.
Signed-off-by: Ramez Medhat <iramezdev@gmail.com>1 parent e8062b6 commit f179dee
File tree
2 files changed
+3
-10
lines changed- chaoscenter/web/src/views/AddProbeModalWizard
- __tests__
2 files changed
+3
-10
lines changedLines changed: 2 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
| 344 | + | |
352 | 345 | | |
353 | 346 | | |
354 | 347 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
0 commit comments