From 158607921e12e999a3f18968ac86da66187882d2 Mon Sep 17 00:00:00 2001 From: Curtis Date: Mon, 16 Dec 2024 11:15:32 -0500 Subject: [PATCH 1/3] test: Add new E2E to clear privacy data --- .../Sections/ClearPrivacy/ClearPrivacy.tsx | 6 +- .../SecurityAndPrivacy/ClearPrivacyModal.js | 29 ++++++++++ .../SecurityAndPrivacyView.js | 15 +++++ .../ClearPrivacyModal.selectors.js | 10 ++++ .../SecurityPrivacyView.selectors.js | 4 +- e2e/specs/settings/clear-privacy-data.spec.js | 56 +++++++++++++++++++ e2e/tags.js | 18 +++--- 7 files changed, 127 insertions(+), 11 deletions(-) create mode 100644 e2e/pages/Settings/SecurityAndPrivacy/ClearPrivacyModal.js create mode 100644 e2e/selectors/Settings/SecurityAndPrivacy/ClearPrivacyModal.selectors.js create mode 100644 e2e/specs/settings/clear-privacy-data.spec.js diff --git a/app/components/Views/Settings/SecuritySettings/Sections/ClearPrivacy/ClearPrivacy.tsx b/app/components/Views/Settings/SecuritySettings/Sections/ClearPrivacy/ClearPrivacy.tsx index 0254820f002..2fb5910899d 100644 --- a/app/components/Views/Settings/SecuritySettings/Sections/ClearPrivacy/ClearPrivacy.tsx +++ b/app/components/Views/Settings/SecuritySettings/Sections/ClearPrivacy/ClearPrivacy.tsx @@ -16,6 +16,9 @@ import Button, { ButtonWidthTypes, } from '../../../../../../component-library/components/Buttons/Button'; import SDKConnect from '../../../../../../../app/core/SDKConnect/SDKConnect'; +import { SecurityPrivacyViewSelectorsIDs } from '../../../../../../../e2e/selectors/Settings/SecurityAndPrivacy/SecurityPrivacyView.selectors'; +import { ClearPrivacyModalSelectorsIDs } from '../../../../../../../e2e/selectors/Settings/SecurityAndPrivacy/ClearPrivacyModal.selectors'; + const ClearPrivacy = () => { const { styles } = useStyles(styleSheet, {}); @@ -40,7 +43,7 @@ const ClearPrivacy = () => { onRequestClose={() => setModalVisible(false)} onConfirmPress={clearApprovals} > - + {strings('app_settings.clear_approvals_modal_title')} @@ -66,6 +69,7 @@ const ClearPrivacy = () => {