Skip to content

Commit 37aba59

Browse files
committed
fix failing test properly
1 parent 8954d94 commit 37aba59

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Controls/tests/TestCases.HostApp/Issues/XFIssue/Issue7678.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ internal DataTemplate GetCarouselTemplate()
6666
};
6767

6868
info.SetBinding(Label.TextProperty, new Binding("Name"));
69+
info.SetBinding(Label.AutomationIdProperty, new Binding("Name"));
6970

7071
grid.Children.Add(info);
7172

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7678.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ public Issue7678(TestDevice device) : base(device)
1616
public void VerifyCarouselViewItemsRenderAfterBinding()
1717
{
1818
App.WaitForElement("carouselView", timeout: TimeSpan.FromSeconds(4));
19-
App.WaitForElement("1");
19+
var text = App.WaitForElement("1").GetText();
20+
Assert.That(text, Is.EqualTo("1"), "The first item in the Carouselview should be `1` after binding.");
2021
}
2122
}
2223
}

0 commit comments

Comments
 (0)