test: fix test cases for MUI DatePicker and TimePicker migration
- Add data-testid attributes to DatePicker and TimePicker components in DateTimeFields - Update test queries from getByLabelText to getByTestId for date/time inputs - Fix assertions to use toHaveAttribute instead of toHaveValue for MUI pickers - Add data-testid to occurrences-input in EventRepeat component - Update RepeatEvent test to use data-testid for occurrences input - Fix radio button queries using getAllByLabelText with type filter
This commit is contained in:
committed by
Benoit TELLIER
parent
3c75a7e82e
commit
5078128e10
@@ -192,7 +192,7 @@ export default function RepeatEvent({
|
||||
})
|
||||
}
|
||||
style={{ width: 100 }}
|
||||
inputProps={{ min: 1 }}
|
||||
inputProps={{ min: 1, "data-testid": "occurrences-input" }}
|
||||
disabled={!isOwn || endOption !== "after"}
|
||||
/>
|
||||
occurrences
|
||||
|
||||
Reference in New Issue
Block a user