Skip to content

Commit

Permalink
Make test for dummy data work.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmenezes0 committed Apr 17, 2024
1 parent 6b23f51 commit 1575ce0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/integration/test_logging_in_to_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ def test_generating_dummy_data(django_app):
login_page.form["username"] = "[email protected]"
login_page.form["password"] = "admin" # pragma: allowlist secret
ml_page = login_page.form.submit().follow()
assert "dummy data" in ml_page
assert "Generate a dummy consultation" in ml_page

# Check dummy data button does generate a new consultation
initial_count = Consultation.objects.all().count()
# TODO - why isn't this working
ml_page.clickbutton("Generate dummy consultation")
ml_page.form.submit("generate_dummy_consultation")
count_after_dummy_data = Consultation.objects.all().count()
assert count_after_dummy_data > initial_count

0 comments on commit 1575ce0

Please sign in to comment.