Skip to content

Commit

Permalink
tests: adding test for MAUI 8157
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Apr 7, 2024
1 parent 22ad326 commit 9aa90c5
Showing 1 changed file with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,26 @@ public async Task FlyoutRelativeNavigation_RemovesPage_AndNavigatesNotModally()
TestPage(currentPage);
}

[Fact(Skip = "Blocked by dotnet/maui/issues/8157")]
[Fact]
public void MAUI_Issue_8157_InitialNavigation_PushesModals()
{
Exception startupEx = null;
var mauiApp = CreateBuilder(prism => prism.CreateWindow("MockViewA/MockViewB", ex =>
{
startupEx = ex;
}))
.Build();
Assert.Null(startupEx);
var window = GetWindow(mauiApp);

Assert.IsType<MockViewA>(window.Page);
TestPage(window.Page);
var currentPage = window.CurrentPage;
Assert.IsType<MockViewB>(currentPage);
TestPage(currentPage);
}

[Fact(Skip = "No longer blocked by dotnet/maui/issues/8157. Not yet implemented.")]
public async Task RelativeNavigation_RemovesPage_AndNavigatesModally()
{
Exception startupEx = null;
Expand Down

0 comments on commit 9aa90c5

Please sign in to comment.