Skip to content

Commit

Permalink
Ui Test improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
kubaflo committed Oct 11, 2024
1 parent 2e12e45 commit 8d7d563
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<VerticalStackLayout BindableLayout.ItemsSource="{Binding BindingContext.ItemListHeader, Source={x:Reference Self}}">
<BindableLayout.ItemTemplate>
<DataTemplate>
<Label Padding="10" Text="{Binding .}" />
<Label AutomationId="{Binding .}" Padding="10" Text="{Binding .}" />
</DataTemplate>
</BindableLayout.ItemTemplate>
</VerticalStackLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ public Issue12429(TestDevice device) : base(device)

[Test]
[Category(UITestCategories.CollectionView)]
public async Task HeaderShouldNotCollapseWithItems()
public void HeaderShouldNotCollapseWithItems()
{
App.WaitForElement("button");
App.Click("button");
App.Click("button");
App.Click("button");

await Task.Delay(500);

App.WaitForElement("HeaderItem4");
//The test passes of header has 4 elements that don't overlap with the collection view's items
VerifyScreenshot();
}
Expand Down

0 comments on commit 8d7d563

Please sign in to comment.