diff --git a/tests/BrowserTestCase.php b/tests/BrowserTestCase.php index 8cd8b8c941..803c73962a 100644 --- a/tests/BrowserTestCase.php +++ b/tests/BrowserTestCase.php @@ -28,6 +28,13 @@ public function setUp(): void Browser::$waitSeconds = 20; } + public function tearDown(): void + { + $this->browse(fn (Browser $browser) => $browser->logout()); + + parent::tearDown(); + } + /** * Create the RemoteWebDriver instance. */