diff --git a/openedx/core/djangoapps/discussions/tests/test_views.py b/openedx/core/djangoapps/discussions/tests/test_views.py index 165a5d40a37..1429f205dd6 100644 --- a/openedx/core/djangoapps/discussions/tests/test_views.py +++ b/openedx/core/djangoapps/discussions/tests/test_views.py @@ -398,7 +398,10 @@ def test_enabled_configuration(self, payload): self._post(payload) data = self.get() - assert data['enabled'] and not self.course.is_hidden + for tab in self.course.tabs: + if tab.tab_id == 'discussion': + assert data['enabled'] and not self.course.is_hidden + break def test_change_plugin_configuration(self): """