From 4484feb0dc95e94eb3f0706d73babc357b58adbb Mon Sep 17 00:00:00 2001 From: Churikova Tetiana Date: Wed, 25 Apr 2018 12:18:02 +0300 Subject: [PATCH] replace selector with more genaral value;update 'Testing' in jenkins file; --- Jenkinsfile | 6 ++++-- test/end-to-end/pages/openbounty/bounties.py | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e78c93f..e1e78ba 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -31,9 +31,11 @@ def dockerreponame = "statusim/openbounty-app" echo "No deployment on automatic trigger, go to Jenkins and push build button to deliver it." } } - stage('Tetisng') { + stage('Testing') { if ( currentBuild.rawBuild.getCauses()[0].toString().contains('UserIdCause') ){ - build job: 'end-to-end-tests/sob-end-to-end-tests' + echo 'Waiting 2,5 minutes for deployment to complete prior starting smoke testing' + sleep 150 + build job: 'status-openbounty/sob-end-to-end-tests', parameters: [[$class: 'StringParameterValue', name: 'BRANCH', value: "*/develop"]] } else { echo "No testing on automatic trigger, go to Jenkins and push build button to deliver it and test it." } diff --git a/test/end-to-end/pages/openbounty/bounties.py b/test/end-to-end/pages/openbounty/bounties.py index b18f91a..d002008 100644 --- a/test/end-to-end/pages/openbounty/bounties.py +++ b/test/end-to-end/pages/openbounty/bounties.py @@ -44,7 +44,8 @@ class BountyClaimsAmount(BaseText): def __init__(self, driver, issue_title, claims_text): super(BaseText, self).__init__(driver) self.locator = self.Locator.xpath_selector( - '//div[@class="header"]/a[contains(.,"%s")]/../../div[@class="footer-row"]/span[contains(.,"%s")]' % (issue_title, claims_text)) + '//div[@class="header"]/a[contains(.,"%s")]/../../*/span[contains(.,"%s")]' % (issue_title, claims_text)) + class BountiesPage(BasePageObject):