Use package name constant instead of hardcoding
Browse files
e2e_tests/test_sauce_labs.py
CHANGED
|
@@ -82,7 +82,7 @@ def save_server_settings(driver: WebDriver):
|
|
| 82 |
)
|
| 83 |
element.send_keys(TEST_UUID)
|
| 84 |
element = driver.find_element(
|
| 85 |
-
by=AppiumBy.ID, value="
|
| 86 |
)
|
| 87 |
element.click()
|
| 88 |
|
|
@@ -125,7 +125,7 @@ def enable_privacy_settings(driver: WebDriver):
|
|
| 125 |
secondary_checkbox.click()
|
| 126 |
|
| 127 |
# driver.start_activity(APP_PACKAGE_NAME, APP_ACTIVITY_NAME)
|
| 128 |
-
# driver.activate_app("
|
| 129 |
# These sleeps are harsh, however are now needed till will fix the activity which brings up settings by default
|
| 130 |
# Once thats fixed, we can activate the app back it should resume as is, without the back button
|
| 131 |
|
|
|
|
| 82 |
)
|
| 83 |
element.send_keys(TEST_UUID)
|
| 84 |
element = driver.find_element(
|
| 85 |
+
by=AppiumBy.ID, value=f"{APP_PACKAGE_NAME}:id/saveButton"
|
| 86 |
)
|
| 87 |
element.click()
|
| 88 |
|
|
|
|
| 125 |
secondary_checkbox.click()
|
| 126 |
|
| 127 |
# driver.start_activity(APP_PACKAGE_NAME, APP_ACTIVITY_NAME)
|
| 128 |
+
# driver.activate_app(f"{APP_PACKAGE_NAME}")
|
| 129 |
# These sleeps are harsh, however are now needed till will fix the activity which brings up settings by default
|
| 130 |
# Once thats fixed, we can activate the app back it should resume as is, without the back button
|
| 131 |
|