def test_splinter_add_issue_unreachable(self): frespoProject(frespoUser()) self.app.login_plain(td.userDict1) try: offerDict = td.buildDefaultOfferDict1234( trackerURL='https://hibernatis.onjira.com/browse/OH404-1052', key='OH404-1052', title='This issue is on an unreachable tracker', newProjectName='Hibernatis', newProjectHomeURL='http://www.hibernate.org/', newProjectTrackerURL='https://hibernate.onjira.com/browse/OH404' ) self.app.addOffer(offerDict) assert (self.app.is_text_present( '[ Offer ] US$ 10.00 for issue - This issue is on an unreachable tracker' )) self.app.followIssueLinkOnHomeByTitle( 'This issue is on an unreachable tracker') self.app.followOfferLinkByValue(offerDict['step4']['price']) self.app.go_to_projects() assert (self.app.is_text_present('Hibernatis')) assert (self.app.is_text_present('http://www.hibernate.org/')) assert (self.app.is_text_present( 'https://hibernate.onjira.com/browse/OH404')) except: traceback.print_exc() sleep(waitifbreak) raise
def test_splinter_add_issue_HHH_1052_with_empty_db(self): frespoProject(frespoUser()) self.app.login_plain(td.userDict1) try: self.app.go_to_projects() assert(not self.app.is_text_present('Hibernate')) offerDict = td.buildDefaultOfferDict134(trackerURL='https://hibernate.onjira.com/browse/HHH-1052', newProjectHomeURL='http://www.hibernate.org/') self.app.addOffer(offerDict) assert(self.app.is_text_present('[ Offer ] US$ 10.00 for issue - Allow CalendarType.set to accept Date objects')) self.app.followIssueLinkOnHomeByTitle('Allow CalendarType.set to accept Date objects') self.app.followOfferLinkByValue(offerDict['step4']['price']) self.app.go_to_projects() assert(self.app.is_text_present('Hibernate ORM')) assert(self.app.is_text_present('http://www.hibernate.org/')) except: traceback.print_exc() sleep(waitifbreak) raise
def test_splinter_add_issue_HHH_1052_with_empty_db(self): frespoProject(frespoUser()) self.app.login_plain(td.userDict1) try: self.app.go_to_projects() assert (not self.app.is_text_present('Hibernate')) offerDict = td.buildDefaultOfferDict134( trackerURL='https://hibernate.onjira.com/browse/HHH-1052', newProjectHomeURL='http://www.hibernate.org/') self.app.addOffer(offerDict) assert (self.app.is_text_present( '[ Offer ] US$ 10.00 for issue - Allow CalendarType.set to accept Date objects' )) self.app.followIssueLinkOnHomeByTitle( 'Allow CalendarType.set to accept Date objects') self.app.followOfferLinkByValue(offerDict['step4']['price']) self.app.go_to_projects() assert (self.app.is_text_present('Hibernate ORM')) assert (self.app.is_text_present('http://www.hibernate.org/')) except: traceback.print_exc() sleep(waitifbreak) raise
def test_splinter_add_issue_unreachable(self): frespoProject(frespoUser()) self.app.login_plain(td.userDict1) try: offerDict = td.buildDefaultOfferDict1234( trackerURL='https://hibernatis.onjira.com/browse/OH404-1052', key='OH404-1052', title='This issue is on an unreachable tracker', newProjectName='Hibernatis', newProjectHomeURL='http://www.hibernate.org/', newProjectTrackerURL='https://hibernate.onjira.com/browse/OH404') self.app.addOffer(offerDict) assert(self.app.is_text_present('[ Offer ] US$ 10.00 for issue - This issue is on an unreachable tracker')) self.app.followIssueLinkOnHomeByTitle('This issue is on an unreachable tracker') self.app.followOfferLinkByValue(offerDict['step4']['price']) self.app.go_to_projects() assert(self.app.is_text_present('Hibernatis')) assert(self.app.is_text_present('http://www.hibernate.org/')) assert(self.app.is_text_present('https://hibernate.onjira.com/browse/OH404')) except: traceback.print_exc() sleep(waitifbreak) raise