def verify_help_link(self, href): """ Verifies that help link is correct Arguments: href (str): Help url """ actual_link = self.cohort_management.get_cohort_help_element_and_click_help() self.assertEqual(actual_link.text, "What does this mean?") assert_opened_help_link_is_correct(self, href)
def verify_help_link(self, href): """ Verifies that help link is correct Arguments: href (str): Help url """ actual_link = self.cohort_management.get_cohort_help_element_and_click_help() self.assertEqual(actual_link.text, "What does this mean?") assert_opened_help_link_is_correct(self, href)
def test_instructor_dashboard_help(self): """ Scenario: Help button opens staff help Given that I am viewing the Instructor Dashboard When I click "Help" Then I see help about the instructor dashboard in a new tab """ href = url_for_help('course_author', '/CA_instructor_dash_help.html') self.instructor_dashboard_page.click_help() assert_opened_help_link_is_correct(self, href)
def verify_help_link(self, href): """ Verifies that help link is correct Arguments: href (str): Help url """ help_element = self.cohort_management.get_cohort_help_element() self.assertEqual(help_element.text, "What does this mean?") click_and_wait_for_window(self, help_element) assert_opened_help_link_is_correct(self, href)
def test_instructor_dashboard_help(self): """ Scenario: Help button opens staff help Given that I am viewing the Instructor Dashboard When I click "Help" Then I see help about the instructor dashboard in a new tab """ href = "http://edx.readthedocs.io/projects/edx-guide-for-students/en/latest/SFD_instructor_dash_help.html" self.instructor_dashboard_page.click_help() assert_opened_help_link_is_correct(self, href)
def verify_help_link(self, href): """ Verifies that help link is correct Arguments: href (str): Help url """ help_element = self.cohort_management.get_cohort_help_element() self.assertEqual(help_element.text, "What does this mean?") click_and_wait_for_window(self, help_element) assert_opened_help_link_is_correct(self, href)
def test_instructor_dashboard_help(self): """ Scenario: Help button opens staff help Given that I am viewing the Instructor Dashboard When I click "Help" Then I see help about the instructor dashboard in a new tab """ href = 'http://edx.readthedocs.io/projects/edx-guide-for-students/en/latest/SFD_instructor_dash_help.html' self.instructor_dashboard_page.click_help() assert_opened_help_link_is_correct(self, href)
def test_instructor_dashboard_help(self): """ Scenario: Help button opens staff help Given that I am viewing the Instructor Dashboard When I click "Help" Then I see help about the instructor dashboard in a new tab """ href = url_for_help('course_author', '/CA_instructor_dash_help.html') self.instructor_dashboard_page.click_help() assert_opened_help_link_is_correct(self, href)
def verify_help_link(self, href): """ Verifies that help link is correct Arguments: href (str): Help url """ expected_link = {"href": href, "text": "What does this mean?"} actual_link = self.cohort_management.get_cohort_help_element_and_click_help() assert_link(self, expected_link, actual_link) assert_opened_help_link_is_correct(self, self.get_url_with_changed_domain(href))
def test_instructor_dashboard_help(self): """ Scenario: Help button opens staff help Given that I am viewing the Instructor Dashboard When I click "Help" Then I see help about the instructor dashboard in a new tab """ href = 'http://edx.readthedocs.io/projects/open-edx-learner-guide/en/' \ 'open-release-ficus.master/SFD_instructor_dash_help.html' self.instructor_dashboard_page.click_help() assert_opened_help_link_is_correct(self, href)
def verify_help_link(self, href): """ Verifies that help link is correct Arguments: href (str): Help url """ expected_link = {'href': href, 'text': 'What does this mean?'} actual_link = self.cohort_management.get_cohort_help_element_and_click_help( ) assert_link(self, expected_link, actual_link) assert_opened_help_link_is_correct(self, href)
def verify_help_link(self, href): """ Verifies that help link is correct Arguments: href (str): Help url """ expected_link = { 'href': href, 'text': 'What does this mean?' } actual_link = self.cohort_management.get_cohort_help_element_and_click_help() assert_link(self, expected_link, actual_link) assert_opened_help_link_is_correct(self, href)