diff --git a/common/test/acceptance/tests/lms/test_lms_edxnotes.py b/common/test/acceptance/tests/lms/test_lms_edxnotes.py index b10c3d694c..77f2d72644 100644 --- a/common/test/acceptance/tests/lms/test_lms_edxnotes.py +++ b/common/test/acceptance/tests/lms/test_lms_edxnotes.py @@ -872,18 +872,27 @@ class EdxNotesPageTest(EventsTestMixin, EdxNotesTestMixin): self._add_default_notes() 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] assert_page(note, self.raw_note_list[4]['usage_id'], "Recent Activity") self.notes_page.visit().switch_to_tab("structure") + # visiting the page results in an ajax request to fetch the notes + self.notes_page.wait_for_ajax() note = self.notes_page.notes[1] assert_page(note, self.raw_note_list[2]['usage_id'], "Location in Course") self.notes_page.visit().switch_to_tab("tags") + # visiting the page results in an ajax request to fetch the notes + self.notes_page.wait_for_ajax() note = self.notes_page.notes[0] assert_page(note, self.raw_note_list[2]['usage_id'], "Tags") self.notes_page.visit().search("Fifth") + # visiting the page results in an ajax request to fetch the notes + self.notes_page.wait_for_ajax() + note = self.notes_page.notes[0] assert_page(note, self.raw_note_list[4]['usage_id'], "Search Results")