Skip to content

Commit

Permalink
Stop running macos unit tests and change login screen
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <[email protected]>
  • Loading branch information
derek-ho committed May 31, 2024
1 parent a54f262 commit d486bdc
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 60 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest , windows-latest, macos-latest ]
os: [ ubuntu-latest , windows-latest ]
runs-on: ${{ matrix.os }}

steps:
Expand Down
6 changes: 3 additions & 3 deletions public/apps/login/login-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
EuiForm,
EuiFormRow,
EuiHorizontalRule,
EuiFieldPassword,
} from '@elastic/eui';
import { CoreStart } from '../../../../../src/core/public';
import { ClientConfigType } from '../../types';
Expand Down Expand Up @@ -202,12 +203,11 @@ export function LoginPage(props: LoginPageDeps) {
);
formBody.push(
<EuiFormRow isInvalid={passwordValidationFailed}>
<EuiFieldText
<EuiFieldPassword
data-test-subj="password"
aria-label="password_input"
placeholder="Password"
prepend={<EuiIcon type="lock" />}
type="password"
type="dual"
onChange={(e) => setPassword(e.target.value)}
value={password}
isInvalid={usernameValidationFailed}
Expand Down
96 changes: 40 additions & 56 deletions public/apps/login/test/__snapshots__/login-page.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,16 @@ exports[`Login page renders renders with config value for multiauth 1`] = `
isInvalid={false}
labelType="label"
>
<EuiFieldText
<EuiFieldPassword
aria-label="password_input"
compressed={false}
data-test-subj="password"
fullWidth={false}
isInvalid={false}
isLoading={false}
onChange={[Function]}
placeholder="Password"
prepend={
<EuiIcon
type="lock"
/>
}
type="password"
type="dual"
value=""
/>
</EuiFormRow>
Expand Down Expand Up @@ -217,18 +215,16 @@ exports[`Login page renders renders with config value for multiauth with anonymo
isInvalid={false}
labelType="label"
>
<EuiFieldText
<EuiFieldPassword
aria-label="password_input"
compressed={false}
data-test-subj="password"
fullWidth={false}
isInvalid={false}
isLoading={false}
onChange={[Function]}
placeholder="Password"
prepend={
<EuiIcon
type="lock"
/>
}
type="password"
type="dual"
value=""
/>
</EuiFormRow>
Expand Down Expand Up @@ -388,18 +384,16 @@ exports[`Login page renders renders with config value with anonymous auth enable
isInvalid={false}
labelType="label"
>
<EuiFieldText
<EuiFieldPassword
aria-label="password_input"
compressed={false}
data-test-subj="password"
fullWidth={false}
isInvalid={false}
isLoading={false}
onChange={[Function]}
placeholder="Password"
prepend={
<EuiIcon
type="lock"
/>
}
type="password"
type="dual"
value=""
/>
</EuiFormRow>
Expand Down Expand Up @@ -509,18 +503,16 @@ exports[`Login page renders renders with config value with anonymous auth enable
isInvalid={false}
labelType="label"
>
<EuiFieldText
<EuiFieldPassword
aria-label="password_input"
compressed={false}
data-test-subj="password"
fullWidth={false}
isInvalid={false}
isLoading={false}
onChange={[Function]}
placeholder="Password"
prepend={
<EuiIcon
type="lock"
/>
}
type="password"
type="dual"
value=""
/>
</EuiFormRow>
Expand Down Expand Up @@ -630,18 +622,16 @@ exports[`Login page renders renders with config value: string 1`] = `
isInvalid={false}
labelType="label"
>
<EuiFieldText
<EuiFieldPassword
aria-label="password_input"
compressed={false}
data-test-subj="password"
fullWidth={false}
isInvalid={false}
isLoading={false}
onChange={[Function]}
placeholder="Password"
prepend={
<EuiIcon
type="lock"
/>
}
type="password"
type="dual"
value=""
/>
</EuiFormRow>
Expand Down Expand Up @@ -733,18 +723,16 @@ exports[`Login page renders renders with config value: string array 1`] = `
isInvalid={false}
labelType="label"
>
<EuiFieldText
<EuiFieldPassword
aria-label="password_input"
compressed={false}
data-test-subj="password"
fullWidth={false}
isInvalid={false}
isLoading={false}
onChange={[Function]}
placeholder="Password"
prepend={
<EuiIcon
type="lock"
/>
}
type="password"
type="dual"
value=""
/>
</EuiFormRow>
Expand Down Expand Up @@ -836,18 +824,16 @@ exports[`Login page renders renders with default value: string 1`] = `
isInvalid={false}
labelType="label"
>
<EuiFieldText
<EuiFieldPassword
aria-label="password_input"
compressed={false}
data-test-subj="password"
fullWidth={false}
isInvalid={false}
isLoading={false}
onChange={[Function]}
placeholder="Password"
prepend={
<EuiIcon
type="lock"
/>
}
type="password"
type="dual"
value=""
/>
</EuiFormRow>
Expand Down Expand Up @@ -939,18 +925,16 @@ exports[`Login page renders renders with default value: string array 1`] = `
isInvalid={false}
labelType="label"
>
<EuiFieldText
<EuiFieldPassword
aria-label="password_input"
compressed={false}
data-test-subj="password"
fullWidth={false}
isInvalid={false}
isLoading={false}
onChange={[Function]}
placeholder="Password"
prepend={
<EuiIcon
type="lock"
/>
}
type="password"
type="dual"
value=""
/>
</EuiFormRow>
Expand Down

0 comments on commit d486bdc

Please sign in to comment.