Skip to content

Commit

Permalink
Back to default settings when finishing newly added tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
notoraptor committed May 30, 2024
1 parent 29dc9bd commit 9efce43
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions clockwork_frontend_test/test_jobs_one.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ def test_job_no_user_props(page: Page, fake_data):
props_table = page.locator("table#user_props_table")
expect(props_table).to_have_count(0)

# Back to default settings
page.goto(f"{BASE_URL}/settings/")
select = page.locator("select#language_selection")
select.select_option("fr")
expect(select).to_have_value("fr")


def test_job_with_user_props(page: Page, fake_data):
mila_email_username = "[email protected]"
Expand Down Expand Up @@ -120,3 +126,9 @@ def test_job_with_user_props(page: Page, fake_data):
expect(cols).to_have_count(2)
expect(cols.nth(0)).to_contain_text(k)
expect(cols.nth(1)).to_contain_text(str(v))

# Back to default settings
page.goto(f"{BASE_URL}/settings/")
select = page.locator("select#language_selection")
select.select_option("fr")
expect(select).to_have_value("fr")

0 comments on commit 9efce43

Please sign in to comment.