Wizard: fix datepicker reset glitch (MS-8610)
If the reset button is clicked, there is a glitch that shows error state for a moment. This commit removes the glitch by setting the snapshot date even for invalid values, and removes the workaround that was previously added.
This commit is contained in:
parent
a93a163afb
commit
6ec6f33fda
3 changed files with 10 additions and 7 deletions
|
|
@ -254,6 +254,12 @@ describe('repository snapshot tab - ', () => {
|
|||
});
|
||||
// reset fills in the current date, so it should not be disabled
|
||||
await clickReset();
|
||||
// works even for invalid values
|
||||
await updateDatePickerWithValue('xxx');
|
||||
await waitFor(() => {
|
||||
expect(nextBtn).toBeDisabled();
|
||||
});
|
||||
await clickReset();
|
||||
await waitFor(() => {
|
||||
expect(nextBtn).toBeEnabled();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue