From 790ccd984c332e7c2e732b77021e17d44026d07a Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Thu, 16 Mar 2023 07:03:48 -0400 Subject: [PATCH] Turn off auto completion on the login form (#13471) --- awx/ui/src/screens/Login/Login.js | 1 + awx/ui/src/screens/Login/Login.test.js | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/awx/ui/src/screens/Login/Login.js b/awx/ui/src/screens/Login/Login.js index 7b70e150d8..0e9009a10a 100644 --- a/awx/ui/src/screens/Login/Login.js +++ b/awx/ui/src/screens/Login/Login.js @@ -208,6 +208,7 @@ function AWXLogin({ alt, isAuthenticated }) { > {(formik) => ( ', () => { ); }); + test.only('form has autocomplete off', async () => { + let wrapper; + await act(async () => { + wrapper = mountWithContexts( false} />); + }); + expect(wrapper.find('form[autoComplete="off"]').length).toBe(1); + }); + test('custom logo renders Brand component with correct src and alt', async () => { let wrapper; await act(async () => {