You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a JUnit 5 test (based on BrowserTestBase) that opens a browser window contains an assumption that aborts the execution, the browser window will not be closed automatically.
For BrowserTestBase test classes, the WebDriver is usually closed by the ScreenshotOnFailureExtension extension.
However, that class does not implement the testAborted().
Implementing testAborted() and calling quitDriverOnFinish() should fix the issue.
Consider also if it is worth it take the screenshot also for the aborted test.
The text was updated successfully, but these errors were encountered:
If a JUnit 5 test (based on
BrowserTestBase
) that opens a browser window contains an assumption that aborts the execution, the browser window will not be closed automatically.For example, running will leave the browser open.
For
BrowserTestBase
test classes, theWebDriver
is usually closed by theScreenshotOnFailureExtension
extension.However, that class does not implement the
testAborted()
.Implementing
testAborted()
and callingquitDriverOnFinish()
should fix the issue.Consider also if it is worth it take the screenshot also for the aborted test.
The text was updated successfully, but these errors were encountered: