Exemple #1
0
    def test_contracted_flag_when_profile_marked_excluded_by_exclude_all_operation(
            self):
        self.navigateToAccountIntel()
        profile_management = ProfileManagement(self.driver)
        profile_management.clickEditIcon()
        profile_management.exclude_account('Eli Lilly & Company')
        profile_management.click_save_button()

        profile_management.exclude_tab().click()
        excluded_tab = ExcludedTab(self.driver)

        actual = excluded_tab.all_master_profiles()
        expected = [
            "Eli Lilly & Company", "Kuoni Group", "New accenture",
            "Norges Fotballforbund", "Norwegian Government"
        ]

        assert actual == expected

        excluded_tab.click_on_edit_icon()
        excluded_tab.click_star_reactive_icon()
        excluded_tab.click_accept_all()
        excluded_tab.click_close_button_star_icon()
        excluded_tab.click_save_button()

        excluded_tab.click_on_profile_management_tab()
        assert False == profile_management.is_profile_pending(
            'Eli Lilly & Company')
        assert False == profile_management.is_profile_pending(
            'Eli Lilly & Company')
Exemple #2
0
 def test_reset_button_disabled_when_user_clicks_intially(self):
     self.navigateToAccountIntel()
     profile_management = ProfileManagement(self.driver)
     profile_management.exclude_tab().click()
     excluded_tab = ExcludedTab(self.driver)
     excluded_tab.click_on_edit_icon()
     excluded_tab.click_star_reactive_icon()
     time.sleep(5)
     assert True == excluded_tab.is_reset_button_enabled()
     excluded_tab.click_close_button_star_icon()
Exemple #3
0
 def test_reset_functionality_when_few_marked_accepted(self):
     self.navigateToAccountIntel()
     profile_management = ProfileManagement(self.driver)
     profile_management.exclude_tab().click()
     excluded_tab = ExcludedTab(self.driver)
     excluded_tab.click_on_edit_icon()
     excluded_tab.activate_account('Kuoni Group')
     excluded_tab.activate_account('Norwegian Government')
     assert True == excluded_tab.is_profile_approved('Kuoni Group')
     assert True == excluded_tab.is_profile_approved('Norwegian Government')
     excluded_tab.click_star_reactive_icon()
     excluded_tab.click_reset_button()
     excluded_tab.click_close_button_star_icon()
     excluded_tab.click_cancel_save_button()
     assert True == excluded_tab.is_profile_excluded('Kuoni Group')
     assert True == excluded_tab.is_profile_excluded('Norwegian Government')