Skip to content

Commit

Permalink
Intentionally failing ServerSideErrorOnLoadedPageShouldHaltTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone committed Nov 11, 2022
1 parent fb10e99 commit a21c106
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions Lombiq.Tests.UI.Samples/Tests/ErrorHandlingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,11 @@ public Task ServerSideErrorOnLoadedPageShouldHaltTest(Browser browser) =>
ExecuteTestAfterSetupAsync(
async context =>
{
try
{
await context.GoToErrorPageDirectlyAsync();
await context.GoToErrorPageDirectlyAsync();
// This point should be unreachable because Orchard logs are automatically asserted after a page
// load.
throw new InvalidOperationException("The log assertion didn't happen after page load!");
}
catch (PageChangeAssertionException)
{
// Remove all logs to have a clean slate.
context.ClearLogs();
}
// This point should be unreachable because Orchard logs are automatically asserted after a page
// load.
throw new InvalidOperationException("The log assertion didn't happen after page load!");
},
browser);

Expand Down

0 comments on commit a21c106

Please sign in to comment.