Skip to content

Commit

Permalink
Merge pull request #172 from ZeroGachis/feature/fwms-377
Browse files Browse the repository at this point in the history
feat(e2e): Add AutomationId on Entry
  • Loading branch information
sGeeK44 authored Dec 11, 2024
2 parents 26e0583 + 79be375 commit 54d126b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Smartway.UiComponent/Inputs/FormEntry.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
Focused="InputOnFocused"
IsPassword="{Binding Source={x:Reference Self}, Path=IsPassword}"
Unfocused="InputOnUnfocused"
>
AutomationId="{Binding Source={x:Reference Self}, Path=AutomationId, StringFormat='{0}_Input'}">
<Entry.Triggers>
<DataTrigger TargetType="Entry" Binding="{Binding Source={x:Reference Self}, Path=ReadOnly}" Value="True">
<Setter Property="IsReadOnly" Value="True"/>
Expand Down
6 changes: 3 additions & 3 deletions Smartway.UiComponent/Inputs/NumericDateEntry.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
</Style>
</ResourceDictionary>
</StackLayout.Resources>
<Entry x:Name="FirstEntry" Grid.Column="0" Focused="OnFocusedSelectAllEntryContent"/>
<Entry x:Name="FirstEntry" Grid.Column="0" Focused="OnFocusedSelectAllEntryContent" AutomationId="{Binding Source={x:Reference Self}, Path=AutomationId, StringFormat='{0}_Day'}"/>
<Label Grid.Column="1" Text="/"/>
<Entry x:Name="SecondEntry" Grid.Column="2" Focused="OnFocusedSelectAllEntryContent"/>
<Entry x:Name="SecondEntry" Grid.Column="2" Focused="OnFocusedSelectAllEntryContent" AutomationId="{Binding Source={x:Reference Self}, Path=AutomationId, StringFormat='{0}_Month'}"/>
<Label Grid.Column="3" Text="/"/>
<Entry x:Name="ThirdEntry" Grid.Column="4" Focused="OnFocusedSelectAllEntryContent"/>
<Entry x:Name="ThirdEntry" Grid.Column="4" Focused="OnFocusedSelectAllEntryContent" AutomationId="{Binding Source={x:Reference Self}, Path=AutomationId, StringFormat='{0}_Year'}"/>
</StackLayout>

0 comments on commit 54d126b

Please sign in to comment.