Harden e2e waits against loaded-box flakes; add AGENTS.md
This commit is contained in:
+2
-2
@@ -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')")
|
||||
|
||||
Reference in New Issue
Block a user