replace selector with more genaral value;update 'Testing' in jenkins file;
This commit is contained in:
parent
385df7d887
commit
4484feb0dc
|
@ -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."
|
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') ){
|
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 {
|
} else {
|
||||||
echo "No testing on automatic trigger, go to Jenkins and push build button to deliver it and test it."
|
echo "No testing on automatic trigger, go to Jenkins and push build button to deliver it and test it."
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,8 @@ class BountyClaimsAmount(BaseText):
|
||||||
def __init__(self, driver, issue_title, claims_text):
|
def __init__(self, driver, issue_title, claims_text):
|
||||||
super(BaseText, self).__init__(driver)
|
super(BaseText, self).__init__(driver)
|
||||||
self.locator = self.Locator.xpath_selector(
|
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):
|
class BountiesPage(BasePageObject):
|
||||||
|
|
Loading…
Reference in New Issue