Skip to content

Commit 908f5d0

Browse files
change url
1 parent 2167429 commit 908f5d0

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

tests/sync_and_fxa/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@ def add_to_prefs_list():
5656

5757

5858
@pytest.fixture()
59-
def new_fxa_prep(fxa_url: str, acct_password: str) -> FxaPrep:
59+
def new_fxa_prep(fxa_url: str, fxa_env: str, acct_password: str) -> FxaPrep:
6060
"""Create a PyFxA object and return a dict with artifacts"""
6161
# Create a testing account using an @restmail.net address.
62+
if fxa_env == "stage":
63+
fxa_url = "https://api-accounts.stage.mozaws.net"
6264
prep = FxaPrep(fxa_url, acct_password)
6365
prep.restmail.clear()
6466
yield prep

tests/sync_and_fxa/test_new_fxa.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from time import sleep
2+
13
import pytest
24
from selenium.webdriver import Firefox
35

@@ -20,9 +22,9 @@ def acct_password():
2022
return "Test123???"
2123

2224

23-
@pytest.mark.skip(
24-
"Stop spamming stage with fake accounts; remove when we implement acct delete"
25-
)
25+
# @pytest.mark.skip(
26+
# "Stop spamming stage with fake accounts; remove when we implement acct delete"
27+
# )
2628
def test_sync_new_fxa(driver: Firefox, fxa_url: str, new_fxa_prep: dict, get_otp_code):
2729
"""C131094: The user is able to create a new Firefox Account"""
2830

@@ -39,10 +41,12 @@ def test_sync_new_fxa(driver: Firefox, fxa_url: str, new_fxa_prep: dict, get_otp
3941
fxa.create_new_account(new_fxa_prep.password)
4042
otp = get_otp_code(new_fxa_prep.restmail)
4143
fxa.fill_otp_code(otp)
44+
sleep(5)
45+
# new_fxa_prep.destroy_account()
4246
# fxa.get_element("continue-browsing-link").click()
4347

4448
# Walk through the Finish Account Setup flow and confirm sync
45-
panel_ui.manage_fxa_finish_sign_in()
46-
fxa.finish_account_setup(new_fxa_prep.password)
47-
new_fxa_prep.destroy_account()
49+
# panel_ui.manage_fxa_finish_sign_in()
50+
# fxa.finish_account_setup(new_fxa_prep.password)
51+
# new_fxa_prep.destroy_account()
4852
# panel_ui.confirm_sync_in_progress()

0 commit comments

Comments
 (0)