-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Back to default settings when finishing newly added tests.
- Loading branch information
1 parent
29dc9bd
commit 9efce43
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]" | ||
|
@@ -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") |