From 3e9711f8f290f96c7c0040aa5f3972b03a3ffbe8 Mon Sep 17 00:00:00 2001 From: ifernandezdiaz Date: Tue, 20 Jun 2023 11:28:54 -0300 Subject: [PATCH] [PM-2611] Adding IDs for Cipher/Send search results (#2575) * Adding IDs for Cipher/Send search results * Adding missing spaces --- .../CipherViewCell/CipherViewCell.xaml | 24 +++++++++++------ .../Controls/SendViewCell/SendViewCell.xaml | 26 ++++++++++++------- src/App/Pages/Send/SendsPage.xaml | 6 +++-- src/App/Pages/Vault/CiphersPage.xaml | 9 ++++--- 4 files changed, 43 insertions(+), 22 deletions(-) diff --git a/src/App/Controls/CipherViewCell/CipherViewCell.xaml b/src/App/Controls/CipherViewCell/CipherViewCell.xaml index 5024ad537..e2ecba08e 100644 --- a/src/App/Controls/CipherViewCell/CipherViewCell.xaml +++ b/src/App/Controls/CipherViewCell/CipherViewCell.xaml @@ -9,7 +9,8 @@ StyleClass="list-row, list-row-platform" RowSpacing="0" ColumnSpacing="0" - x:DataType="controls:CipherViewCellViewModel"> + x:DataType="controls:CipherViewCellViewModel" + AutomationId="CipherCell"> @@ -36,7 +37,8 @@ IsVisible="{Binding ShowIconImage, Converter={StaticResource inverseBool}}" Text="{Binding Cipher, Converter={StaticResource iconGlyphConverter}}" ShouldUpdateFontSizeDynamicallyForAccesibility="True" - AutomationProperties.IsInAccessibleTree="False" /> + AutomationProperties.IsInAccessibleTree="False" + AutomationId="CipherTypeIcon" /> + AutomationProperties.IsInAccessibleTree="False" + AutomationId="CipherWebsiteIcon" /> @@ -71,7 +74,8 @@ Grid.Column="0" Grid.Row="0" StyleClass="list-title, list-title-platform" - Text="{Binding Cipher.Name}" /> + Text="{Binding Cipher.Name}" + AutomationId="CipherNameLabel" /> + AutomationProperties.Name="{u:I18n Options}" + AutomationId="CipherOptionsButton" /> \ No newline at end of file diff --git a/src/App/Controls/SendViewCell/SendViewCell.xaml b/src/App/Controls/SendViewCell/SendViewCell.xaml index 8a9d0e2a6..30d7b8ca3 100644 --- a/src/App/Controls/SendViewCell/SendViewCell.xaml +++ b/src/App/Controls/SendViewCell/SendViewCell.xaml @@ -1,4 +1,4 @@ - + + Text="{Binding Send.Name}" + AutomationId="SendNameLabel" /> diff --git a/src/App/Pages/Send/SendsPage.xaml b/src/App/Pages/Send/SendsPage.xaml index fd37c5b2d..b2194eb31 100644 --- a/src/App/Pages/Send/SendsPage.xaml +++ b/src/App/Pages/Send/SendsPage.xaml @@ -67,13 +67,15 @@ SelectionMode="Single" SelectionChanged="RowSelected" StyleClass="list, list-platform" - ExtraDataForLogging="Sends Page"> + ExtraDataForLogging="Sends Page" + AutomationId="SendCellList"> + ShowOptions="{Binding BindingContext.SendEnabled, Source={x:Reference _page}}" + AutomationId="SendCell" /> diff --git a/src/App/Pages/Vault/CiphersPage.xaml b/src/App/Pages/Vault/CiphersPage.xaml index 36b9e01c0..f35d7dc6f 100644 --- a/src/App/Pages/Vault/CiphersPage.xaml +++ b/src/App/Pages/Vault/CiphersPage.xaml @@ -41,7 +41,8 @@ HorizontalOptions="FillAndExpand" TextChanged="SearchBar_TextChanged" SearchButtonPressed="SearchBar_SearchButtonPressed" - Placeholder="{Binding PageTitle}" /> + Placeholder="{Binding PageTitle}" + AutomationId="SearchBar" /> @@ -91,7 +92,8 @@ Source="empty_items_state" />