From 1f3cf99c57027ab24c9be584574e266097c5d935 Mon Sep 17 00:00:00 2001 From: Melissa Hart <48496458+MelissaDTH@users.noreply.github.com> Date: Thu, 4 Apr 2024 15:41:55 +0200 Subject: [PATCH] fix(a11y): icon button to use button element --- .../__snapshots__/CheckoutForm.test.tsx.snap | 6 ++--- .../Dialog/__snapshots__/Dialog.test.tsx.snap | 6 ++--- .../DialogBackButton.test.tsx.snap | 6 ++--- .../EditPasswordForm.test.tsx.snap | 12 ++++------ .../Header/__snapshots__/Header.test.tsx.snap | 12 ++++------ .../src/components/IconButton/IconButton.tsx | 23 ++++-------------- .../__snapshots__/IconButton.test.tsx.snap | 6 ++--- .../components/LanguageMenu/LanguageMenu.tsx | 4 ++-- .../__snapshots__/LanguageMenu.test.tsx.snap | 6 ++--- .../__snapshots__/LoginForm.test.tsx.snap | 6 ++--- .../ModalCloseButton.test.tsx.snap | 6 ++--- .../__snapshots__/PasswordField.test.tsx.snap | 6 ++--- .../RegistrationForm.test.tsx.snap | 6 ++--- .../__snapshots__/SearchBar.test.tsx.snap | 6 ++--- .../__snapshots__/Sidebar.test.tsx.snap | 12 ++++------ .../Cinema/__snapshots__/Cinema.test.tsx.snap | 6 ++--- .../Layout/__snapshots__/Layout.test.tsx.snap | 12 ++++------ .../web/test-e2e/tests/live_channel_test.ts | 2 +- .../test-e2e/tests/payments/coupons_test.ts | 2 +- platforms/web/test-e2e/tests/search_test.ts | 6 ++--- .../web/test-e2e/tests/video_detail_test.ts | 24 +++++++++---------- .../web/test-e2e/utils/password_utils.ts | 4 ++-- platforms/web/test-e2e/utils/steps_file.ts | 6 ++--- platforms/web/test-e2e/utils/watch_history.ts | 2 +- 24 files changed, 68 insertions(+), 119 deletions(-) diff --git a/packages/ui-react/src/components/CheckoutForm/__snapshots__/CheckoutForm.test.tsx.snap b/packages/ui-react/src/components/CheckoutForm/__snapshots__/CheckoutForm.test.tsx.snap index ebbee84cb..2c2beb5e7 100644 --- a/packages/ui-react/src/components/CheckoutForm/__snapshots__/CheckoutForm.test.tsx.snap +++ b/packages/ui-react/src/components/CheckoutForm/__snapshots__/CheckoutForm.test.tsx.snap @@ -216,11 +216,9 @@ exports[` > renders and matches snapshot 1`] = ` -
-
+ `; diff --git a/packages/ui-react/src/components/Dialog/__snapshots__/Dialog.test.tsx.snap b/packages/ui-react/src/components/Dialog/__snapshots__/Dialog.test.tsx.snap index a46295ebc..fda711396 100644 --- a/packages/ui-react/src/components/Dialog/__snapshots__/Dialog.test.tsx.snap +++ b/packages/ui-react/src/components/Dialog/__snapshots__/Dialog.test.tsx.snap @@ -35,11 +35,9 @@ exports[` > renders and matches snapshot 1`] = ` role="dialog" > Dialog contents -
-
+ diff --git a/packages/ui-react/src/components/DialogBackButton/__snapshots__/DialogBackButton.test.tsx.snap b/packages/ui-react/src/components/DialogBackButton/__snapshots__/DialogBackButton.test.tsx.snap index 99e39c033..7a39c7d0e 100644 --- a/packages/ui-react/src/components/DialogBackButton/__snapshots__/DialogBackButton.test.tsx.snap +++ b/packages/ui-react/src/components/DialogBackButton/__snapshots__/DialogBackButton.test.tsx.snap @@ -2,11 +2,9 @@ exports[` > renders and matches snapshot 1`] = `
-
-
+
`; diff --git a/packages/ui-react/src/components/EditPasswordForm/__snapshots__/EditPasswordForm.test.tsx.snap b/packages/ui-react/src/components/EditPasswordForm/__snapshots__/EditPasswordForm.test.tsx.snap index 154c0b47c..98520e064 100644 --- a/packages/ui-react/src/components/EditPasswordForm/__snapshots__/EditPasswordForm.test.tsx.snap +++ b/packages/ui-react/src/components/EditPasswordForm/__snapshots__/EditPasswordForm.test.tsx.snap @@ -38,12 +38,10 @@ exports[` > renders and matches snapshot 1`] = `
-
-
+
> renders and matches snapshot 1`] = `
-
-
+
> renders header 1`] = `
- +
> renders and matches snapshot 1`] = `
-
-
+
> renders and matches snapshot 1`] = ` type="search" value="My search query" /> -
-
+
diff --git a/packages/ui-react/src/components/Sidebar/__snapshots__/Sidebar.test.tsx.snap b/packages/ui-react/src/components/Sidebar/__snapshots__/Sidebar.test.tsx.snap index 33b7ab28a..92a961242 100644 --- a/packages/ui-react/src/components/Sidebar/__snapshots__/Sidebar.test.tsx.snap +++ b/packages/ui-react/src/components/Sidebar/__snapshots__/Sidebar.test.tsx.snap @@ -13,11 +13,9 @@ exports[` > renders sideBar closed 1`] = `
-
> renders sideBar closed 1`] = ` fill="none" /> -
+