Skip to content

Commit 2f5fe3a

Browse files
Merge pull request #644 from mozilla/philimon/password_fix
Philimon/primary_password_trigger_test_fix
2 parents 711d639 + eeaa576 commit 2f5fe3a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

l10n_CM/run_l10n.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,15 @@
1313
valid_flags = {"--run-headless", "-n", "--reruns", "--fx-executable", "--ci"}
1414
flag_with_parameter = {"-n", "--reruns"}
1515
valid_region = {"US", "CA", "DE", "FR"}
16-
valid_sites = {"demo", "amazon", "walmart", "mediamarkt", "lowes", "etsy", "calvinklein"}
16+
valid_sites = {
17+
"demo",
18+
"amazon",
19+
"walmart",
20+
"mediamarkt",
21+
"lowes",
22+
"etsy",
23+
"calvinklein",
24+
}
1725
live_sites = []
1826

1927
LOCALHOST = "127.0.0.1"

tests/password_manager/test_primary_password_triggered_on_about_logins_access.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ def test_primary_password_triggered_on_about_logins_access_via_hamburger_menu(
7373
# Attempt to view the saved password in order to trigger the primary password prompt
7474
about_logins.element_visible("show-password-checkbox")
7575
about_logins.click_on("show-password-checkbox")
76-
7776
# Dismiss the primary password prompt without entering the password
7877
with driver.context(driver.CONTEXT_CHROME):
7978
driver.switch_to.window(driver.window_handles[-1])
@@ -84,9 +83,9 @@ def test_primary_password_triggered_on_about_logins_access_via_hamburger_menu(
8483
tabs.switch_to_new_tab()
8584
panel_ui.open_panel_menu()
8685
panel_ui.redirect_to_about_logins_page()
87-
8886
# Verify that the primary password prompt appears and enter the primary password
8987
with driver.context(driver.CONTEXT_CHROME):
88+
tabs.wait_for_num_tabs(2)
9089
driver.switch_to.window(driver.window_handles[-1])
9190
# Fetch a fresh reference to avoid staling
9291
primary_password_prompt = about_logins.get_element("primary-password-prompt")

0 commit comments

Comments
 (0)