Skip to content

Commit

Permalink
uurgh webkit pls
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-maertens committed Jul 12, 2024
1 parent a9d7c83 commit 59e7a9b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/openforms/forms/tests/e2e_tests/helpers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import asyncio
import json
import re
from contextlib import contextmanager
Expand Down Expand Up @@ -82,8 +83,12 @@ async def enter_json_in_editor(
await page.evaluate("document.getElementById('copyHack').remove()")
# now the code is on the clip board (confirmed, even on webkit)

await asyncio.sleep(2)

# click the editor to focus it
await editor.click()
await asyncio.sleep(2)

# add a bunch of extra assertions to hopefully nudge webkit in the right direction
await expect(editor.locator(".view-overlays")).to_have_class(re.compile("focused"))
await page.screenshot(path=f"/tmp/screenshots/{label}1.png")
Expand Down

0 comments on commit 59e7a9b

Please sign in to comment.