diff --git a/test/appium/Jenkinsfile b/test/appium/Jenkinsfile index f322e4ee51..4861dcf810 100644 --- a/test/appium/Jenkinsfile +++ b/test/appium/Jenkinsfile @@ -1,8 +1,8 @@ -node {sauce('6269510b-13f3-4019-b156-c2c835f3a408') { - try {sh '/usr/local/bin/python3 -m pytest -m sanity -v --dist=loadscope -n3 --build ${JOB_NAME}__${BUILD_NUMBER}' +node {sauce('b9aded57-5cc1-4f6b-b5ea-42d989987852') { + try {sh 'cd test/appium/tests && /usr/local/bin/python3 -m pytest -m sanity --build ${JOB_NAME}__${BUILD_NUMBER} -v --dist=loadscope -n3' } finally { saucePublisher() - junit testDataPublishers: [[$class: 'SauceOnDemandReportPublisher', jobVisibility: 'public']], testResults: '*.xml' } + junit testDataPublishers: [[$class: 'SauceOnDemandReportPublisher', jobVisibility: 'public']], testResults: 'test/appium/tests/*.xml' } } } diff --git a/test/appium/views/base_element.py b/test/appium/views/base_element.py index c0478c2262..759158a6d1 100644 --- a/test/appium/views/base_element.py +++ b/test/appium/views/base_element.py @@ -40,14 +40,13 @@ class BaseElement(object): .until(expected_conditions.presence_of_element_located((self.locator.by, self.locator.value))) def scroll_to_element(self): - for x in range(10): - action = TouchAction(self.driver) - action.press(x=0, y=1000).move_to(x=200, y=-1000).release().perform() + for _ in range(5): try: self.find_element() break except NoSuchElementException: - pass + action = TouchAction(self.driver) + action.press(x=0, y=1000).move_to(x=200, y=-1000).release().perform() class BaseEditBox(BaseElement):