From 31487a31bb8dc15a74adfea68128098f58477297 Mon Sep 17 00:00:00 2001 From: ifernandezdiaz Date: Mon, 26 Jun 2023 10:30:13 -0300 Subject: [PATCH] [PM-2748] Refactoring locator strategy for Cipher Details page (#2586) * Refactoring locator strategy for Cipher Details page * Fixing extra spaces --- src/App/Pages/Vault/CipherDetailsPage.xaml | 179 ++++++++++++--------- 1 file changed, 107 insertions(+), 72 deletions(-) diff --git a/src/App/Pages/Vault/CipherDetailsPage.xaml b/src/App/Pages/Vault/CipherDetailsPage.xaml index 0de7f7692..1f82eef19 100644 --- a/src/App/Pages/Vault/CipherDetailsPage.xaml +++ b/src/App/Pages/Vault/CipherDetailsPage.xaml @@ -69,24 +69,27 @@ - + - + + IsVisible="{Binding Cipher.Login.Username, Converter={StaticResource stringHasValue}}" + AutomationId="ItemRow"> @@ -99,13 +102,14 @@ Text="{u:I18n Username}" StyleClass="box-label" Grid.Row="0" - Grid.Column="0" /> + Grid.Column="0" + AutomationId="ItemName" /> + IsVisible="{Binding Cipher.Login.Password, Converter={StaticResource stringHasValue}}" + AutomationId="ItemRow"> @@ -136,14 +141,15 @@ Text="{u:I18n Password}" StyleClass="box-label" Grid.Row="0" - Grid.Column="0" /> + Grid.Column="0" + AutomationId="ItemName" /> + AutomationId="ItemValue" /> + AutomationId="ItemValue" /> + AutomationId="CheckPasswordButton" /> + AutomationId="ViewValueButton" /> + AutomationId="CopyValueButton" /> - + @@ -205,7 +211,8 @@ Text="{u:I18n VerificationCodeTotp}" StyleClass="box-label" Grid.Row="0" - Grid.Column="0" /> + Grid.Column="0" + AutomationId="ItemName" /> + AutomationId="ItemValue" /> + AutomationId="CopyValueButton" />