Harden e2e waits against loaded-box flakes; add AGENTS.md

This commit is contained in:
2026-10-05 12:59:39 +02:00
parent 89564a96ca
commit 94ae750e56
8 changed files with 49 additions and 21 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
# retoor <retoor@molodetz.nl>
from tests.conftest import goto_ready
def test_lightbox_opens_and_closes(page, app_server):
page.goto(app_server + "/flyers", wait_until="domcontentloaded")
page.wait_for_selector("html[data-app=ready]")
goto_ready(page, app_server + "/flyers")
page.locator("[data-lightbox]").first.click()
lightbox = page.locator("dp-lightbox")
assert lightbox.evaluate("el => el.classList.contains('visible')")