You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-06 10:22:45 +03:00
Fix: server picker validates unselected option (#11020)
* add aria-label to default homeserver checkbox * test ServerPickerDialog * remove debug * strict fixes * dont validate unselected server field on ServerPickerDialog * i18n
This commit is contained in:
@@ -110,12 +110,6 @@ describe("<ServerPickerDialog />", () => {
|
||||
|
||||
fireEvent.click(screen.getByText("Continue"));
|
||||
|
||||
// serverpicker still validates the 'other homeserver' field on submit
|
||||
// when default is chosen
|
||||
// so this throws a lot of errors into the console
|
||||
// and is asynchronous while waiting for validation
|
||||
await flushPromises();
|
||||
|
||||
// closed dialog with default server
|
||||
expect(onFinished).toHaveBeenCalledWith(defaultServerConfig);
|
||||
});
|
||||
|
Reference in New Issue
Block a user