class FocusAreasPageContentTest(DWSWebTestCase):

    def setUp(self):
        DWSWebTestCase.setUp(self)
        self.content_verifier = SharedPageContentVerifier(self)
        self.open_focus_areas_page()

    def test_01_focus_areas_page_has_expected_main_menu_links(self):
        """web.content.FocusAreasPageContentTest  1. Focus Areas page has expected main menu links"""

        self.content_verifier.verify_expected_main_menu_links()

    def test_02_breadcrumb_bar_has_home_link(self):
        """web.content.FocusAreasPageContentTest  2. Breadcrumb bar has Home link"""

        self.assert_link_exists("Home")

    def test_03_focus_areas_panel_has_expected_sections_and_all_projects_link(self):
        """web.content.FocusAreasPageContentTest  3. Focus Areas panel has expected sections and all projects link"""

        self.assert_page_contains_text_items(["Focus Areas",
                                              "Clean Water",
                                              "International co-operation",
                                              "Governance",
                                              "Land & water"])
        self.assert_link_exists_starting_with_text("See a list of all projects")

    def test_04_clean_water_section_has_expected_links(self):
        """web.content.FocusAreasPageContentTest  4. Clean Water section has expected links"""

        self.assert_links_exist_starting_with_text(["Learn more about clean water",
                                                    "See clean water projects"])

    def test_05_international_cooperation_section_has_expected_links(self):
        """web.content.FocusAreasPageContentTest  5. International co-operation section has expected links"""

        self.assert_links_exist_starting_with_text(["Learn more about International co-operation",
                                                    "See International co-operation projects"])

    def test_06_governance_section_has_expected_links(self):
        """web.content.FocusAreasPageContentTest  6. Governance section has expected links"""

        self.assert_links_exist_starting_with_text(["Learn more about governance",
                                                    "See governance projects"])

    def test_07_land_and_water_section_has_expected_links(self):
        """web.content.FocusAreasPageContentTest  7. Land & water section has expected links"""

        self.assert_links_exist_starting_with_text(["Learn more about land & water",
                                                    "See land & water projects"])

    def test_08_dutch_water_history_panel_has_expected_content_and_links(self):
        """web.content.FocusAreasPageContentTest  8. Dutch water history panel has expected content and links"""

        self.content_verifier.verify_dutch_water_history_panel()

    def test_09_holland_water_valley_panel_has_expected_content_and_links(self):
        """web.content.FocusAreasPageContentTest  9. Holland water valley panel has expected content and links"""

        self.content_verifier.verify_holland_water_valley_panel()
Ejemplo n.º 2
0
class DirectoryPageContentTest(DWSWebTestCase):
    def setUp(self):
        DWSWebTestCase.setUp(self)
        self.content_verifier = SharedPageContentVerifier(self)
        self.open_directory_page()

    def test_01_directory_page_has_expected_main_menu_links(self):
        """web.content.DirectoryPageContentTest  1. Directory page has expected main menu links"""

        self.content_verifier.verify_expected_main_menu_links()

    def test_02_breadcrumb_bar_has_home_link(self):
        """web.content.DirectoryPageContentTest  2. Breadcrumb bar has Home link"""

        self.assert_link_exists("Home")

    def test_03_directory_panel_has_expected_content_and_links(self):
        """web.content.DirectoryPageContentTest  3. Directory panel has expected content and links"""

        self.assert_page_contains_text_items(["Directory of Dutch Water Expertise", "NWP", "Access our database"])
        self.assert_links_exist(
            ["Dutchwatersector.org", "Netherlands Water Partnership", "http://www.dutchwatersector.org"]
        )

    def test_04_dutch_water_history_panel_has_expected_content_and_links(self):
        """web.content.DirectoryPageContentTest  4. Dutch water history panel has expected content and links"""

        self.content_verifier.verify_dutch_water_history_panel()

    def test_05_focus_panel_has_expected_content_and_links(self):
        """web.content.DirectoryPageContentTest  5. Focus panel has expected content and links"""

        self.assert_page_contains_text("Focus: Land & Water")
        self.assert_link_exists_starting_with_text("Learn more")
class NetherlandsPageContentTest(DWSWebTestCase):

    def setUp(self):
        DWSWebTestCase.setUp(self)
        self.content_verifier = SharedPageContentVerifier(self)
        self.open_netherlands_page()

    def test_01_netherlands_page_has_expected_main_menu_links(self):
        """web.content.NetherlandsPageContentTest  1. Netherlands page has expected main menu links"""

        self.content_verifier.verify_expected_main_menu_links()

    def test_02_breadcrumb_bar_has_home_link(self):
        """web.content.NetherlandsPageContentTest  2. Breadcrumb bar has Home link"""

        self.assert_link_exists("Home")

    def test_03_netherlands_now_panel_has_expected_content(self):
        """web.content.NetherlandsPageContentTest  3. The Netherlands now panel has expected content"""

        self.assert_page_contains_text_items(["The Netherlands now",
                                              "Part of our culture and history",
                                              "Going Dutch, water style"])

    def test_04_dutch_water_history_panel_has_expected_content_and_links(self):
        """web.content.NetherlandsPageContentTest  4. Dutch water history panel has expected content and links"""

        self.content_verifier.verify_dutch_water_history_panel()

    def test_05_holland_water_valley_panel_has_expected_content_and_links(self):
        """web.content.NetherlandsPageContentTest  5. Holland water valley panel has expected content and links"""

        self.content_verifier.verify_holland_water_valley_panel()
Ejemplo n.º 4
0
class AboutPageContentTest(DWSWebTestCase):

    def setUp(self):
        DWSWebTestCase.setUp(self)
        self.content_verifier = SharedPageContentVerifier(self)
        self.open_about_page()

    def test_01_about_page_has_expected_main_menu_links(self):
        """web.content.AboutPageContentTest  1. About page has expected main menu links"""

        self.content_verifier.verify_expected_main_menu_links()

    def test_02_breadcrumb_bar_has_home_link(self):
        """web.content.AboutPageContentTest  2. Breadcrumb bar has Home link"""

        self.assert_link_exists("Home")

    def test_03_about_panel_has_expected_content_and_links(self):
        """web.content.AboutPageContentTest  3. About panel has expected content and links"""

        self.assert_page_contains_text_items(["About",
                                              "Dutch Water sector",
                                              "an overview",
                                              "Learn more about"])
        self.assert_links_exist(["The public sector",
                                 "Knowledge institutes - research and academia",
                                 "Non-governmental organisations (NGOs)",
                                 "Private companies"])

    def test_04_about_listing_panel_has_expected_links(self):
        """web.content.AboutPageContentTest  4. About listing panel has expected links"""

        self.assert_links_exist_starting_with_text(["Dutch Water sector",
                                                    "Public sector",
                                                    "Knowledge institutes",
                                                    "NGOs",
                                                    "Private companies",
                                                    "Contact us"])

    def test_05_dutch_water_history_panel_has_expected_content_and_links(self):
        """web.content.AboutPageContentTest  5. Dutch water history panel has expected content and links"""

        self.content_verifier.verify_dutch_water_history_panel()
Ejemplo n.º 5
0
class AboutPageContentTest(DWSWebTestCase):
    def setUp(self):
        DWSWebTestCase.setUp(self)
        self.content_verifier = SharedPageContentVerifier(self)
        self.open_about_page()

    def test_01_about_page_has_expected_main_menu_links(self):
        """web.content.AboutPageContentTest  1. About page has expected main menu links"""

        self.content_verifier.verify_expected_main_menu_links()

    def test_02_breadcrumb_bar_has_home_link(self):
        """web.content.AboutPageContentTest  2. Breadcrumb bar has Home link"""

        self.assert_link_exists("Home")

    def test_03_about_panel_has_expected_content_and_links(self):
        """web.content.AboutPageContentTest  3. About panel has expected content and links"""

        self.assert_page_contains_text_items(
            ["About", "Dutch Water sector", "an overview", "Learn more about"])
        self.assert_links_exist([
            "The public sector",
            "Knowledge institutes - research and academia",
            "Non-governmental organisations (NGOs)", "Private companies"
        ])

    def test_04_about_listing_panel_has_expected_links(self):
        """web.content.AboutPageContentTest  4. About listing panel has expected links"""

        self.assert_links_exist_starting_with_text([
            "Dutch Water sector", "Public sector", "Knowledge institutes",
            "NGOs", "Private companies", "Contact us"
        ])

    def test_05_dutch_water_history_panel_has_expected_content_and_links(self):
        """web.content.AboutPageContentTest  5. Dutch water history panel has expected content and links"""

        self.content_verifier.verify_dutch_water_history_panel()
class DirectoryPageContentTest(DWSWebTestCase):
    def setUp(self):
        DWSWebTestCase.setUp(self)
        self.content_verifier = SharedPageContentVerifier(self)
        self.open_directory_page()

    def test_01_directory_page_has_expected_main_menu_links(self):
        """web.content.DirectoryPageContentTest  1. Directory page has expected main menu links"""

        self.content_verifier.verify_expected_main_menu_links()

    def test_02_breadcrumb_bar_has_home_link(self):
        """web.content.DirectoryPageContentTest  2. Breadcrumb bar has Home link"""

        self.assert_link_exists("Home")

    def test_03_directory_panel_has_expected_content_and_links(self):
        """web.content.DirectoryPageContentTest  3. Directory panel has expected content and links"""

        self.assert_page_contains_text_items([
            "Directory of Dutch Water Expertise", "NWP", "Access our database"
        ])
        self.assert_links_exist([
            "Dutchwatersector.org", "Netherlands Water Partnership",
            "http://www.dutchwatersector.org"
        ])

    def test_04_dutch_water_history_panel_has_expected_content_and_links(self):
        """web.content.DirectoryPageContentTest  4. Dutch water history panel has expected content and links"""

        self.content_verifier.verify_dutch_water_history_panel()

    def test_05_focus_panel_has_expected_content_and_links(self):
        """web.content.DirectoryPageContentTest  5. Focus panel has expected content and links"""

        self.assert_page_contains_text("Focus: Land & Water")
        self.assert_link_exists_starting_with_text("Learn more")
Ejemplo n.º 7
0
class FocusAreasPageContentTest(DWSWebTestCase):
    def setUp(self):
        DWSWebTestCase.setUp(self)
        self.content_verifier = SharedPageContentVerifier(self)
        self.open_focus_areas_page()

    def test_01_focus_areas_page_has_expected_main_menu_links(self):
        """web.content.FocusAreasPageContentTest  1. Focus Areas page has expected main menu links"""

        self.content_verifier.verify_expected_main_menu_links()

    def test_02_breadcrumb_bar_has_home_link(self):
        """web.content.FocusAreasPageContentTest  2. Breadcrumb bar has Home link"""

        self.assert_link_exists("Home")

    def test_03_focus_areas_panel_has_expected_sections_and_all_projects_link(
            self):
        """web.content.FocusAreasPageContentTest  3. Focus Areas panel has expected sections and all projects link"""

        self.assert_page_contains_text_items([
            "Focus Areas", "Clean Water", "International co-operation",
            "Governance", "Land & water"
        ])
        self.assert_link_exists_starting_with_text(
            "See a list of all projects")

    def test_04_clean_water_section_has_expected_links(self):
        """web.content.FocusAreasPageContentTest  4. Clean Water section has expected links"""

        self.assert_links_exist_starting_with_text(
            ["Learn more about clean water", "See clean water projects"])

    def test_05_international_cooperation_section_has_expected_links(self):
        """web.content.FocusAreasPageContentTest  5. International co-operation section has expected links"""

        self.assert_links_exist_starting_with_text([
            "Learn more about International co-operation",
            "See International co-operation projects"
        ])

    def test_06_governance_section_has_expected_links(self):
        """web.content.FocusAreasPageContentTest  6. Governance section has expected links"""

        self.assert_links_exist_starting_with_text(
            ["Learn more about governance", "See governance projects"])

    def test_07_land_and_water_section_has_expected_links(self):
        """web.content.FocusAreasPageContentTest  7. Land & water section has expected links"""

        self.assert_links_exist_starting_with_text(
            ["Learn more about land & water", "See land & water projects"])

    def test_08_dutch_water_history_panel_has_expected_content_and_links(self):
        """web.content.FocusAreasPageContentTest  8. Dutch water history panel has expected content and links"""

        self.content_verifier.verify_dutch_water_history_panel()

    def test_09_holland_water_valley_panel_has_expected_content_and_links(
            self):
        """web.content.FocusAreasPageContentTest  9. Holland water valley panel has expected content and links"""

        self.content_verifier.verify_holland_water_valley_panel()