Merge pull request #13697 from edx/mzfr/flaky-bokchoy-4954
Fixing flaky test_studio_help_links
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user