-
-
Notifications
You must be signed in to change notification settings - Fork 830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OIDC: unit test ServerPickerDialog #11019
Conversation
|
||
fireEvent.click(screen.getByText("Continue")); | ||
|
||
// serverpicker still validates the 'other homeserver' field on submit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logged a bug for this element-hq/element-web#25488
@@ -202,6 +202,7 @@ export default class ServerPickerDialog extends React.PureComponent<IProps, ISta | |||
value="true" | |||
checked={this.state.defaultChosen} | |||
onChange={this.onDefaultChosen} | |||
aria-label={_t("Default homeserver")} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this is right, this is likely to clobber the reading of any child text like defaultServerName
, why is this change in a PR titled unit testing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I wanted an easy way to select this for testing and the aria-label seemed harmless. Changed it to a testid.
Unit test before making changes
For element-hq/element-web#25472
Checklist
This change is marked as an internal change (Task), so will not be included in the changelog.