def one_ultimate_end_user(driver): assert ( len( GenericApplicationUltimateEndUsers( driver).get_ultimate_recipients()) == 1 ), "total on the application overview is incorrect after removing ultimate end user" functions.click_back_link(driver)
def the_good_is_added_to_the_exhibition_application(driver, context): # noqa assert len(StandardApplicationGoodsPage( driver).get_goods()) == 1 # Only one good added assert "Equipment" in Shared(driver).get_table_row(1).text # Go back to task list functions.click_back_link(driver)
def the_good_is_added_to_the_application(driver, context): # noqa body_text = Shared(driver).get_text_of_body() assert len(StandardApplicationGoodsPage( driver).get_goods()) == 1 # Only one good added assert StandardApplicationGoodsPage( driver).get_goods_total_value() == "£1.00" # Value assert "2.0" in body_text # Quantity assert "Number of articles" in body_text # Unit assert context.is_good_incorporated in body_text # Incorporated # Go back to task list functions.click_back_link(driver)
def i_remove_a_third_party_from_the_application(driver): # noqa remove_good_link = TaskListPage(driver).find_remove_party_link() driver.execute_script("arguments[0].click();", remove_good_link) functions.click_back_link(driver)
def i_remove_the_consignee_off_the_application(driver): # noqa remove_consignee_link = TaskListPage(driver).find_remove_party_link() driver.execute_script("arguments[0].click();", remove_consignee_link) functions.click_back_link(driver)
def click_back_link(driver): # noqa functions.click_back_link(driver)
def add_a_note_to_draft_application(driver, context): # noqa enter_case_note_text(driver, context) click_post_note(driver) SubmittedApplicationsPages(driver).assert_case_notes_exists([context.text]) functions.click_back_link(driver)