From 24a39844ae6a7c530eb579f76b215e04638d12dd Mon Sep 17 00:00:00 2001 From: Max Berger Date: Wed, 29 Apr 2026 23:34:26 +0200 Subject: [PATCH] Fix: Avoid race condition in integ test --- integ_tests/test_sharing_login.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/integ_tests/test_sharing_login.py b/integ_tests/test_sharing_login.py index 727e50e1..8aa921ee 100644 --- a/integ_tests/test_sharing_login.py +++ b/integ_tests/test_sharing_login.py @@ -126,6 +126,12 @@ def test_incoming_shares( "tr[data-name='incomingsharerowtemplate']:not(.hidden) input[data-name='shown']" ) ).to_be_checked() + # This is needed due to a potential race condition. + expect( + page.locator( + "tr[data-name='incomingsharerowtemplate']:not(.hidden) input[data-name='shown']" + ) + ).not_to_be_disabled() # 6. Verify "shared by admin" and button visibility in the collection article page.click('#incomingsharingscene button[data-name="close"]')