Skip to content

Commit

Permalink
test_ui: Use a timeout instead of sleeping for 10 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
punchagan committed Aug 10, 2023
1 parent 238b50c commit a9fd677
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/tests/test_ui.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import datetime
import random
import time

import pytest
from django.utils.timezone import now
Expand Down Expand Up @@ -81,9 +80,8 @@ def test_new_user_login(self) -> None:
self.type("input#vpa-upi", "punchagan@upi")
self.click("button#redesign-v15-cta")
self.switch_to_default_content()
time.sleep(10)

self.click('a[href="#/vaccination/1"]')
self.click('a[href="#/vaccination/1"]', timeout=30)
self.select_option_by_text("select#name", "Covishield")
self.choose_file("input#certificate", "frontend/assets/favico.png")
self.click('button:contains("Submit")')
Expand Down

0 comments on commit a9fd677

Please sign in to comment.