Skip to content

Commit

Permalink
Ensure the more button is closed in functional test
Browse files Browse the repository at this point in the history
If it stays open it hides the next button we want to click in the
test.
  • Loading branch information
rebkwok committed Dec 19, 2024
1 parent 710087a commit 4c8e384
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/functional/test_docs_screenshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ def do_review(screenshot=True):
"more_dropdown_el_request_file.png",
extra={"x": -180, "width": 180, "height": 160},
)
# Close the more dropdown and unfocus
page.keyboard.press("Escape")
more_locator.blur()

# Click to open the context modal
page.locator("button[data-modal=group-context]").click()
Expand Down

0 comments on commit 4c8e384

Please sign in to comment.