Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
bbonf committed Sep 24, 2024
1 parent 91891ad commit 02acadf
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions integration_tests/test_parent.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,12 @@ def test_signup_save_longer(page, apps, default_signup_fill_form):


def test_signup_unborn(page, apps, default_signup_fill_form):
now = datetime.datetime.now()
page.locator('#id_birth_date_year').select_option(str(now.year))
page.locator('#id_birth_date_month').select_option(now.strftime('%B'))
page.locator('#id_birth_date_day').select_option(str(now.day + 1))
tomorrow = datetime.datetime.now() + datetime.timedelta(days=1)
page.locator('#id_birth_date_year').select_option(str(tomorrow.year))
page.locator('#id_birth_date_month').select_option(tomorrow.strftime('%B'))
page.locator('#id_birth_date_day').select_option(str(tomorrow.day))

page.click('input[type="submit"]')

# check that the form was submitted
# should immediately show error
expect(page.locator('select.is-invalid')).to_have_count(3)


Expand Down

0 comments on commit 02acadf

Please sign in to comment.