Skip to content

Commit

Permalink
UI test improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
kubaflo committed Sep 19, 2024
1 parent b92ae62 commit 55bb49b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/Controls/tests/TestCases.HostApp/Issues/Issue22032.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,9 @@
Glyph="¼"
Size="15" />
</ContentPage.IconImageSource>
<Label
Text="Hello, Maui!"
TextColor="White"
AutomationId="label"/>
</ContentPage>
</TabbedPage>
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ public Issue22032(TestDevice device) : base(device) { }

[Test]
[Category(UITestCategories.TabbedPage)]
public async Task SelectedTabIconShouldChangeColor()
public void SelectedTabIconShouldChangeColor()
{
App.WaitForElement("button");

App.Click("button");

await Task.Delay(500);
App.WaitForElement("label");

// The test passes if tab1 icon is green and tab2 red
VerifyScreenshot();
Expand Down

0 comments on commit 55bb49b

Please sign in to comment.