Skip to content

Commit

Permalink
Fix test for finding alert
Browse files Browse the repository at this point in the history
Global Django messages also are alert-danger now
  • Loading branch information
stefanw committed Aug 1, 2023
1 parent bec67d4 commit f1ced00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions froide/tests/live/test_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ def test_make_logged_in_request_too_many(
page.locator("#send-request-button").click()
make_request = reverse("foirequest-make_request")
assert make_request in page.url
alert = page.locator(".alert-danger")
expect(alert).to_contain_text("exceeded your request limit")
alert = page.locator(".alert-danger", has_text="exceeded your request limit")
expect(alert).to_be_visible()


@pytest.mark.django_db
Expand Down

0 comments on commit f1ced00

Please sign in to comment.