From 0156790e090ab23a792f9ae8233e91f3ced18c57 Mon Sep 17 00:00:00 2001 From: Jonathan Schaffer Date: Wed, 14 Aug 2024 11:22:59 -0400 Subject: [PATCH] Working with PW Add tests to validate banner Fix broken test Update tests - change reporter to dot, more CI friendly Resolve comments Resolve issues - remove used variable - updated selector to reduce flakiness --- react-app/src/components/Layout/index.tsx | 6 +- react-app/src/components/UsaBanner/index.tsx | 12 ++-- test/e2e/pages/home.page.ts | 26 +++++++ test/e2e/pages/index.ts | 1 + test/e2e/pages/loginPage.ts | 6 +- test/e2e/playwright.config.ts | 2 +- test/e2e/tests/home/faq.spec.ts | 19 +++++ test/e2e/tests/home/index.spec.ts | 54 +++++++------- test/e2e/tests/home/noauth.spec.ts | 75 ++++++++++++++++++++ test/e2e/utils/auth.setup.ts | 6 ++ 10 files changed, 171 insertions(+), 36 deletions(-) create mode 100644 test/e2e/pages/home.page.ts create mode 100644 test/e2e/tests/home/faq.spec.ts create mode 100644 test/e2e/tests/home/noauth.spec.ts diff --git a/react-app/src/components/Layout/index.tsx b/react-app/src/components/Layout/index.tsx index 47d4f6627..88bc66fd3 100644 --- a/react-app/src/components/Layout/index.tsx +++ b/react-app/src/components/Layout/index.tsx @@ -127,7 +127,7 @@ export const Layout = () => { -