vkolgi commited on
Commit
840c0bc
·
1 Parent(s): e53c369

Use package name constant instead of hardcoding

Browse files
Files changed (1) hide show
  1. e2e_tests/test_sauce_labs.py +2 -2
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="com.ttt246.puppet:id/saveButton"
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("com.ttt246.puppet")
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