Skip to content

Commit

Permalink
Update ControlsHandlerTestBase.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWeen committed Jan 4, 2023
1 parent 010c3ba commit 7ef2ee5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Controls/tests/DeviceTests/ControlsHandlerTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,14 @@ protected async Task OnNavigatedToAsync(Page page, TimeSpan? timeOut = null)
{
await OnLoadedAsync(page, timeOut);

// Navigation Events currently aren't wired up
// correctly on iOS
if (OperatingSystem.IsIOS() && page.Parent is NavigationPage)
{
await Task.Delay(100);
return;
}

if (page.HasNavigatedTo)
{
// TabbedPage fires OnNavigated earlier than it should
Expand Down

0 comments on commit 7ef2ee5

Please sign in to comment.