From 8b4fd43a5c6cc3735849b403807aed92d088acba Mon Sep 17 00:00:00 2001 From: William Allen Date: Thu, 16 Jul 2026 10:43:49 -0400 Subject: [PATCH] Log out after browser tests I suspect some of the flakiness of `CreateProjectPageTest` and `ProfilePageTest` is caused by session conflicts since the browser doesn't guarantee complete isolation between tests. Logging out after each test will hopefully address these issues. Note that this is a speculative change, since I'm unable to reproduce the test failures locally. --- tests/BrowserTestCase.php | 7 +++++++ 1 file changed, 7 insertions(+) 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. */