From d486bdc646d401e51aa57e037a08a073017090a2 Mon Sep 17 00:00:00 2001 From: Derek Ho Date: Fri, 31 May 2024 12:45:18 -0400 Subject: [PATCH] Stop running macos unit tests and change login screen Signed-off-by: Derek Ho --- .github/workflows/unit-test.yml | 2 +- public/apps/login/login-page.tsx | 6 +- .../__snapshots__/login-page.test.tsx.snap | 96 ++++++++----------- 3 files changed, 44 insertions(+), 60 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 7fd07c6cb..e1d744266 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -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: diff --git a/public/apps/login/login-page.tsx b/public/apps/login/login-page.tsx index abebf304b..f8bf6e5f4 100644 --- a/public/apps/login/login-page.tsx +++ b/public/apps/login/login-page.tsx @@ -25,6 +25,7 @@ import { EuiForm, EuiFormRow, EuiHorizontalRule, + EuiFieldPassword, } from '@elastic/eui'; import { CoreStart } from '../../../../../src/core/public'; import { ClientConfigType } from '../../types'; @@ -202,12 +203,11 @@ export function LoginPage(props: LoginPageDeps) { ); formBody.push( - } - type="password" + type="dual" onChange={(e) => setPassword(e.target.value)} value={password} isInvalid={usernameValidationFailed} diff --git a/public/apps/login/test/__snapshots__/login-page.test.tsx.snap b/public/apps/login/test/__snapshots__/login-page.test.tsx.snap index f04a02a1d..0fb0cb0a8 100644 --- a/public/apps/login/test/__snapshots__/login-page.test.tsx.snap +++ b/public/apps/login/test/__snapshots__/login-page.test.tsx.snap @@ -64,18 +64,16 @@ exports[`Login page renders renders with config value for multiauth 1`] = ` isInvalid={false} labelType="label" > - - } - type="password" + type="dual" value="" /> @@ -217,18 +215,16 @@ exports[`Login page renders renders with config value for multiauth with anonymo isInvalid={false} labelType="label" > - - } - type="password" + type="dual" value="" /> @@ -388,18 +384,16 @@ exports[`Login page renders renders with config value with anonymous auth enable isInvalid={false} labelType="label" > - - } - type="password" + type="dual" value="" /> @@ -509,18 +503,16 @@ exports[`Login page renders renders with config value with anonymous auth enable isInvalid={false} labelType="label" > - - } - type="password" + type="dual" value="" /> @@ -630,18 +622,16 @@ exports[`Login page renders renders with config value: string 1`] = ` isInvalid={false} labelType="label" > - - } - type="password" + type="dual" value="" /> @@ -733,18 +723,16 @@ exports[`Login page renders renders with config value: string array 1`] = ` isInvalid={false} labelType="label" > - - } - type="password" + type="dual" value="" /> @@ -836,18 +824,16 @@ exports[`Login page renders renders with default value: string 1`] = ` isInvalid={false} labelType="label" > - - } - type="password" + type="dual" value="" /> @@ -939,18 +925,16 @@ exports[`Login page renders renders with default value: string array 1`] = ` isInvalid={false} labelType="label" > - - } - type="password" + type="dual" value="" />