Commit 29061fcd by Muzaffar yousaf Committed by GitHub

Merge pull request #13528 from edx/mushtaq/fix-flaky-edxnotes-test

Fix flaky test test_easy_access_from_notes_page
parents 44bddf8a 0abd2fce
...@@ -842,7 +842,6 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin): ...@@ -842,7 +842,6 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self.assert_viewed_event('Tags') self.assert_viewed_event('Tags')
@flaky # TNL-4590
def test_easy_access_from_notes_page(self): def test_easy_access_from_notes_page(self):
""" """
Scenario: Ensure that the link to the Unit works correctly. Scenario: Ensure that the link to the Unit works correctly.
...@@ -874,27 +873,22 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin): ...@@ -874,27 +873,22 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin):
self._add_default_notes() self._add_default_notes()
self.notes_page.visit() self.notes_page.visit()
# visiting the page results in an ajax request to fetch the notes
self.notes_page.wait_for_ajax()
note = self.notes_page.notes[0] note = self.notes_page.notes[0]
assert_page(note, self.raw_note_list[4]['usage_id'], "Recent Activity") assert_page(note, self.raw_note_list[4]['usage_id'], "Recent Activity")
self.notes_page.visit().switch_to_tab("structure") self.notes_page.visit()
# visiting the page results in an ajax request to fetch the notes self.notes_page.switch_to_tab("structure")
self.notes_page.wait_for_ajax()
note = self.notes_page.notes[1] note = self.notes_page.notes[1]
assert_page(note, self.raw_note_list[2]['usage_id'], "Location in Course") assert_page(note, self.raw_note_list[2]['usage_id'], "Location in Course")
self.notes_page.visit().switch_to_tab("tags") self.notes_page.visit()
# visiting the page results in an ajax request to fetch the notes self.notes_page.switch_to_tab("tags")
self.notes_page.wait_for_ajax()
note = self.notes_page.notes[0] note = self.notes_page.notes[0]
assert_page(note, self.raw_note_list[2]['usage_id'], "Tags") assert_page(note, self.raw_note_list[2]['usage_id'], "Tags")
self.notes_page.visit().search("Fifth") self.notes_page.visit()
# visiting the page results in an ajax request to fetch the notes self.notes_page.search("Fifth")
self.notes_page.wait_for_ajax() self.notes_page.wait_for_ajax()
note = self.notes_page.notes[0] note = self.notes_page.notes[0]
assert_page(note, self.raw_note_list[4]['usage_id'], "Search Results") assert_page(note, self.raw_note_list[4]['usage_id'], "Search Results")
......
...@@ -90,6 +90,11 @@ XQUEUE_INTERFACE['url'] = 'http://localhost:8040' ...@@ -90,6 +90,11 @@ XQUEUE_INTERFACE['url'] = 'http://localhost:8040'
EDXNOTES_PUBLIC_API = 'http://localhost:8042/api/v1' EDXNOTES_PUBLIC_API = 'http://localhost:8042/api/v1'
EDXNOTES_INTERNAL_API = 'http://localhost:8042/api/v1' EDXNOTES_INTERNAL_API = 'http://localhost:8042/api/v1'
EDXNOTES_CONNECT_TIMEOUT = 10 # time in seconds
EDXNOTES_READ_TIMEOUT = 10 # time in seconds
NOTES_DISABLED_TABS = [] NOTES_DISABLED_TABS = []
# Silence noisy logs # Silence noisy logs
......
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