From 43d2d386b13cd63727e7b03021f4a073fe2bc2fd Mon Sep 17 00:00:00 2001 From: ifernandezdiaz Date: Fri, 16 Jun 2023 16:20:09 -0300 Subject: [PATCH] [PM-2645] Adding IDs for Account Switching elements (#2572) * Adding IDs for Account Switching elements * Fixing Active/Inactive vault icon IDs --- .../AccountSwitchingOverlayView.xaml | 4 ++- .../AccountViewCell/AccountViewCell.xaml | 29 ++++++++++++------- src/App/Pages/Accounts/HomePage.xaml | 3 +- src/App/Pages/Accounts/LockPage.xaml | 11 +++---- src/App/Pages/Accounts/LoginPage.xaml | 5 ++-- src/App/Pages/Generator/GeneratorPage.xaml | 2 +- src/App/Pages/Send/SendAddOnlyPage.xaml | 3 +- src/App/Pages/Vault/CipherSelectionPage.xaml | 3 +- .../Vault/GroupingsPage/GroupingsPage.xaml | 3 +- 9 files changed, 40 insertions(+), 23 deletions(-) diff --git a/src/App/Controls/AccountSwitchingOverlay/AccountSwitchingOverlayView.xaml b/src/App/Controls/AccountSwitchingOverlay/AccountSwitchingOverlayView.xaml index f0c52d0d4..4dba94dd1 100644 --- a/src/App/Controls/AccountSwitchingOverlay/AccountSwitchingOverlayView.xaml +++ b/src/App/Controls/AccountSwitchingOverlay/AccountSwitchingOverlayView.xaml @@ -30,13 +30,15 @@ BackgroundColor="{DynamicResource BackgroundColor}" VerticalOptions="Start" RowHeight="{Binding AccountListRowHeight, Source={x:Reference _mainOverlay}}" - effects:ScrollViewContentInsetAdjustmentBehaviorEffect.ContentInsetAdjustmentBehavior="Never"> + effects:ScrollViewContentInsetAdjustmentBehaviorEffect.ContentInsetAdjustmentBehavior="Never" + AutomationId="AccountListView"> diff --git a/src/App/Controls/AccountViewCell/AccountViewCell.xaml b/src/App/Controls/AccountViewCell/AccountViewCell.xaml index 3d45cf929..9a9f53831 100644 --- a/src/App/Controls/AccountViewCell/AccountViewCell.xaml +++ b/src/App/Controls/AccountViewCell/AccountViewCell.xaml @@ -1,4 +1,4 @@ - + + LineBreakMode="TailTruncation" + AutomationId="AccountEmailLabel" /> \ No newline at end of file diff --git a/src/App/Pages/Accounts/HomePage.xaml b/src/App/Pages/Accounts/HomePage.xaml index a4e5f9fcd..d99b965f7 100644 --- a/src/App/Pages/Accounts/HomePage.xaml +++ b/src/App/Pages/Accounts/HomePage.xaml @@ -23,7 +23,8 @@ Priority="-1" UseOriginalImage="True" AutomationProperties.IsInAccessibleTree="True" - AutomationProperties.Name="{u:I18n Account}" /> + AutomationProperties.Name="{u:I18n Account}" + AutomationId="AccountIconButton" /> diff --git a/src/App/Pages/Accounts/LockPage.xaml b/src/App/Pages/Accounts/LockPage.xaml index 561b051f5..f34a8b284 100644 --- a/src/App/Pages/Accounts/LockPage.xaml +++ b/src/App/Pages/Accounts/LockPage.xaml @@ -24,7 +24,8 @@ Priority="-1" UseOriginalImage="True" AutomationProperties.IsInAccessibleTree="True" - AutomationProperties.Name="{u:I18n Account}" /> + AutomationProperties.Name="{u:I18n Account}" + AutomationId="AccountIconButton" /> @@ -72,7 +73,7 @@ Grid.Column="0" ReturnType="Go" ReturnCommand="{Binding SubmitCommand}" - AutomationId="PinEntry"/> + AutomationId="PinEntry" /> + AutomationId="PinVisibilityToggle" /> + AutomationId="MasterPasswordEntry" /> + AutomationId="UnlockVaultButton" /> diff --git a/src/App/Pages/Accounts/LoginPage.xaml b/src/App/Pages/Accounts/LoginPage.xaml index fd2bb3fbd..5f93f9b0c 100644 --- a/src/App/Pages/Accounts/LoginPage.xaml +++ b/src/App/Pages/Accounts/LoginPage.xaml @@ -24,7 +24,8 @@ Priority="-1" UseOriginalImage="True" AutomationProperties.IsInAccessibleTree="True" - AutomationProperties.Name="{u:I18n Account}" /> + AutomationProperties.Name="{u:I18n Account}" + AutomationId="AccountIconButton" /> @@ -34,7 +35,7 @@ x:Name="_moreItem" x:Key="moreItem" AutomationProperties.IsInAccessibleTree="True" AutomationProperties.Name="{u:I18n Options}" - AutomationId="OptionsButton"/> + AutomationId="OptionsButton" /> + AutomationId="GeneratedPasswordLabel" /> + AutomationProperties.Name="{u:I18n Account}" + AutomationId="AccountIconButton" /> diff --git a/src/App/Pages/Vault/CipherSelectionPage.xaml b/src/App/Pages/Vault/CipherSelectionPage.xaml index f5c8c0641..f71d3a2c2 100644 --- a/src/App/Pages/Vault/CipherSelectionPage.xaml +++ b/src/App/Pages/Vault/CipherSelectionPage.xaml @@ -19,7 +19,8 @@ Priority="-1" UseOriginalImage="True" AutomationProperties.IsInAccessibleTree="True" - AutomationProperties.Name="{u:I18n Account}" /> + AutomationProperties.Name="{u:I18n Account}" + AutomationId="AccountIconButton" /> diff --git a/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml b/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml index 40496e133..3b5c24c50 100644 --- a/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml +++ b/src/App/Pages/Vault/GroupingsPage/GroupingsPage.xaml @@ -25,7 +25,8 @@ Priority="-1" UseOriginalImage="True" AutomationProperties.IsInAccessibleTree="True" - AutomationProperties.Name="{u:I18n Account}" /> + AutomationProperties.Name="{u:I18n Account}" + AutomationId="AccountIconButton" />