Skip to content

Commit

Permalink
chore: Test PlatformHelpers for ios not finding navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
eriklimakc committed Oct 3, 2024
1 parent 82e9dd8 commit bf72d4d
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,19 @@ public async Task When_Commerce_Responsive()

/// Tap through each tab bar item

await App.TapAndWait("DealsTabBarItem", "DealsNavigationBar");
PlatformHelpers.On(
iOS: () =>
{
App.WaitThenTap("DealsTabBarItem");
var title = App.CreateQuery(x => x.WithClass("navigationBar").Descendant("label")).FirstResult();

Assert.AreEqual("Deals", title.Text);
},
Android: async () => await App.TapAndWait("DealsTabBarItem", "DealsNavigationBar"),
Browser: async () => await App.TapAndWait("DealsTabBarItem", "DealsNavigationBar")
);

//await App.TapAndWait("DealsTabBarItem", "DealsNavigationBar");

await App.TapAndWait("ProductsTabBarItem", "ProductsNavigationBar");

Expand Down

0 comments on commit bf72d4d

Please sign in to comment.