def i_see_my_picklist_page(driver, context, status):
    body = PicklistPages(driver).get_text_of_picklist_page_body()
    assert context.picklist_name in body, "picklist name is not displayed"
    assert context.picklist_description in body, "picklist description is not displayed"
    assert "Created by" in body, "created by is not displayed"
    if status == "Deactivated":
        assert functions.element_with_css_selector_exists(
            driver, ".govuk-main-wrapper .govuk-tag")
    elif status == "Active":
        assert not functions.element_with_css_selector_exists(
            driver, ".govuk-main-wrapper .govuk-tag")
    assert "Last updated" in body, "last updated is not displayed"
    assert context.picklist_type.lower().replace(
        "_",
        " ") in body.lower().replace("_",
                                     " "), "picklist type is not displayed"
Exemple #2
0
def see_team_user_added(driver, added_not_added, context, internal_info):
    if added_not_added == "added":
        table = Shared(driver).get_text_of_lite_table_body()
        assert context.added_email in table, "User is not displayed in team list"
        assert "Active" in table, "User is not displayed in team list"
    elif added_not_added == "not added":
        assert functions.element_with_css_selector_exists(
            driver,
            Shared(driver).LITE_NOTICE_SELECTOR
        ), "Users are potentially displayed for a just created Team List"
Exemple #3
0
def verify_registered_individual_organisation(driver, context):
    wait_until_page_is_loaded(driver)
    # Assert that the success info bar is visible
    assert functions.element_with_css_selector_exists(
        driver,
        Shared(driver).SNACKBAR_SELECTOR)
    OrganisationsPage(driver).search_for_org_in_filter(
        context.organisation_name)
    row = OrganisationPage(driver).get_organisation_row()
    assert context.organisation_name in row["name"]
Exemple #4
0
 def success_panel_is_present(self):
     return element_with_css_selector_exists(self.driver, self.SUCCESS_PANEL_CSS_SELECTOR)
Exemple #5
0
def post_note_is_disabled(driver):
    assert functions.element_with_css_selector_exists(driver, ".lite-case-note__container--error")
Exemple #6
0
 def goods_exist_on_the_application(self):
     return functions.element_with_css_selector_exists(
         self.driver, self.REMOVE_GOOD_LINK)