replace selector with more genaral value;update 'Testing' in jenkins file;

This commit is contained in:
Churikova Tetiana 2018-04-25 12:18:02 +03:00 committed by Tetiana Churikova
parent 385df7d887
commit 4484feb0dc
2 changed files with 6 additions and 3 deletions

6
Jenkinsfile vendored
View File

@ -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."
}

View File

@ -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):