def create_offer(self, browser): page = TaskPage(browser, offer_url) page.go_to_site() page.get_cookies() page.click_on_the_button(TotalLocators.BUTTON) page.enter_field(SC.OFFER_NAME, offer_name) page.enter_field(SC.OFFER_COMMENT, 'test_comment') page.click_on_the_button(SC.OFFER_CONTEXT) page.enter_type(SC.OFFER_TYPE, 1) page.enter_date(SC.OFFER_START_DATE, start_date) page.enter_date(SC.OFFER_FINISH_DATE, end_date) page.click_on_the_button(TotalLocators.BUTTON) assert page.check_current_title(offer_name)
def test_create_offer(self, browser): case_id = 735197 page = TaskPage(browser, url) page.go_to_site() page.click_on_the_button(TotalLocators.BUTTON) page.enter_field(SC.OFFER_NAME, type_offer_name) page.enter_field(SC.OFFER_COMMENT, 'test_comment') page.click_on_the_button(SC.OFFER_CONTEXT) page.enter_type(SC.OFFER_TYPE, 1) page.enter_date(SC.OFFER_START_DATE, start_date) page.enter_date(SC.OFFER_FINISH_DATE, end_date) page.click_on_the_button(TotalLocators.BUTTON) assert page.check_current_title(type_offer_name), add_result_for_case( run_id, case_id, results['failed']) add_result_for_case(run_id, case_id, results['passed'])