SDA-4101: Welcome screen does not focus after launch the SDA

This commit is contained in:
NguyenTranHoangSym 2023-03-17 11:36:04 +07:00 committed by Salah Benmoussati
parent 22b5ba2dbb
commit a6df7d3cfe
3 changed files with 5 additions and 0 deletions

View File

@ -118,6 +118,7 @@ exports[`welcome should render correctly 1`] = `
className="Welcome-main-container-podurl-box"
data-testid="Welcome-main-container-podurl-box"
onChange={[Function]}
tabIndex={0}
type="url"
value="https://[POD].symphony.com"
/>
@ -134,6 +135,7 @@ exports[`welcome should render correctly 1`] = `
disabled={true}
onClick={[Function]}
style={Object {}}
tabIndex={1}
>
log in
</button>

View File

@ -569,6 +569,7 @@ export class WindowHandler {
isSeamlessLoginEnabled: this.config.enableBrowserLogin,
});
this.didShowWelcomeScreen = true;
this.mainWebContents.focus();
}
// Injects custom title bar and snack bar css into the webContents

View File

@ -76,6 +76,7 @@ export default class Welcome extends React.Component<{}, IState> {
<input
data-testid={'Welcome-main-container-podurl-box'}
className='Welcome-main-container-podurl-box'
tabIndex={0}
type='url'
value={url}
onChange={this.updatePodUrl.bind(this)}
@ -167,6 +168,7 @@ export default class Welcome extends React.Component<{}, IState> {
return (
<button
className='Welcome-continue-button'
tabIndex={1}
disabled={(!isPodConfigured && !urlValid) || isLoading}
onClick={this.eventHandlers.onLogin}
style={isPodConfigured ? { marginTop: '40px' } : {}}