Fix: Avoid race condition in integ test

This commit is contained in:
Max Berger
2026-04-29 23:34:26 +02:00
parent 98d9257b84
commit 24a39844ae

View File

@@ -126,6 +126,12 @@ def test_incoming_shares(
"tr[data-name='incomingsharerowtemplate']:not(.hidden) input[data-name='shown']" "tr[data-name='incomingsharerowtemplate']:not(.hidden) input[data-name='shown']"
) )
).to_be_checked() ).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 # 6. Verify "shared by admin" and button visibility in the collection article
page.click('#incomingsharingscene button[data-name="close"]') page.click('#incomingsharingscene button[data-name="close"]')