From 35765ed32513e487ff2fb087cfb2910d1bee038c Mon Sep 17 00:00:00 2001 From: Daniel Valenzuela Date: Tue, 22 Oct 2024 20:27:31 -0300 Subject: [PATCH] fix: update author view rendering test --- xmodule/tests/test_item_bank.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/xmodule/tests/test_item_bank.py b/xmodule/tests/test_item_bank.py index 8817f580e6b4..c27412c8b709 100644 --- a/xmodule/tests/test_item_bank.py +++ b/xmodule/tests/test_item_bank.py @@ -192,10 +192,11 @@ def test_author_view(self): """ Test author view rendering """ self._bind_course_block(self.item_bank) rendered = self.item_bank.render(AUTHOR_VIEW, {}) - assert '' == rendered.content - # content should be empty - assert 'LibraryContentAuthorView' == rendered.js_init_fn - # but some js initialization should happen + assert 'Learners will see 1 of the 4 selected components' in rendered.content + assert '
  • My Item 0
  • ' in rendered.content + assert '
  • My Item 1
  • ' in rendered.content + assert '
  • My Item 2
  • ' in rendered.content + assert '
  • My Item 3
  • ' in rendered.content @skip_unless_lms