Skip to content

Commit

Permalink
chore: print actual message for TestBrowserContextCDPSession.shouldDe… (
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s authored Nov 19, 2024
1 parent 34017a2 commit ee99afc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void shouldDetachWhenPageCloses() {
page.close();

PlaywrightException exception = assertThrows(PlaywrightException.class, session::detach);
assertTrue(exception.getMessage().contains("Target page, context or browser has been closed"));
assertTrue(exception.getMessage().contains("Target page, context or browser has been closed"), exception.getMessage());
context.close();
}

Expand Down

0 comments on commit ee99afc

Please sign in to comment.