Commit 92d50251 by muzaffaryousaf

Fixing flaky test_studio_help_links

TNL-4954
parent 256223d0
......@@ -246,11 +246,18 @@ def verify_ordering(test_class, page, expected_orderings):
def click_studio_help(page):
"""Click the Studio help link in the page footer."""
page.q(css='.cta-show-sock').click()
"""
Click the Studio help link in the page footer.
"""
help_link_selector = '.cta-show-sock'
# check if help link is visible
EmptyPromise(lambda: page.q(css=help_link_selector).visible, "Help link visible").fulfill()
page.q(css=help_link_selector).click()
# check if extended support section is visible.
EmptyPromise(
lambda: page.q(css='.support .list-actions a').results[0].text != '',
'Support section opened'
lambda: page.q(css='.support .list-actions a').results[0].text != '', 'Support section opened'
).fulfill()
......
......@@ -39,7 +39,6 @@ from common.test.acceptance.pages.studio.auto_auth import AutoAuthPage
class StudioHelpTest(StudioCourseTest):
"""Tests for Studio help."""
@flaky # TODO: TNL-4954
def test_studio_help_links(self):
"""Test that the help links are present and have the correct content."""
page = DashboardPage(self.browser)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment