Skip to content

Commit

Permalink
??
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-maertens committed Sep 21, 2023
1 parent 4e76a22 commit b3d1545
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_javascript_cookiebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ def test_cookiebar_not_shown_anymore_after_accept_or_decline(btn_text: str, page
expect(page.get_by_text(COOKIE_BAR_CONTENT)).not_to_be_visible()

Check warning on line 65 in tests/test_javascript_cookiebar.py

View check run for this annotation

Codecov / codecov/patch

tests/test_javascript_cookiebar.py#L64-L65

Added lines #L64 - L65 were not covered by tests


def test_on_accept_handler_runs_on_load(page: Page):
def test_on_accept_handler_runs_on_load(page: Page, live_server):
accept_button = page.get_by_role("button", name="Accept")
accept_button.click()

page.reload()
test_page_url = f"{live_server.url}{reverse('test_page')}"
page.goto(test_page_url)

Check warning on line 73 in tests/test_javascript_cookiebar.py

View check run for this annotation

Codecov / codecov/patch

tests/test_javascript_cookiebar.py#L72-L73

Added lines #L72 - L73 were not covered by tests

share_button = page.get_by_role("button", name="SHARE")
expect(share_button).to_be_visible()

Check warning on line 76 in tests/test_javascript_cookiebar.py

View check run for this annotation

Codecov / codecov/patch

tests/test_javascript_cookiebar.py#L75-L76

Added lines #L75 - L76 were not covered by tests

0 comments on commit b3d1545

Please sign in to comment.