feat: add support for enabling/disabling the wiki app (#28889)

Currently the wiki app can't be enabled or configured. This change allows enabling/disabling the wiki app which effectively hides/shows the wiki tab.
This commit is contained in:
Kshitij Sobti
2021-10-07 11:34:03 +05:30
committed by GitHub
parent 5d8acc5b41
commit 3e05e0f49b
11 changed files with 181 additions and 87 deletions

View File

@@ -184,8 +184,8 @@ class TabsAPITests(CourseTestCase):
"""
Test that toggling the visibility via the API works.
"""
self.check_toggle_tab_visibility("wiki", True)
self.check_toggle_tab_visibility("wiki", False)
self.check_toggle_tab_visibility("wiki", True)
def test_toggle_tab_visibility_fail(self):
"""

View File

@@ -159,8 +159,8 @@ class TabsPageTests(CourseTestCase):
def test_toggle_tab_visibility(self):
"""Test toggling of tab visibility"""
self.check_toggle_tab_visiblity('wiki', True)
self.check_toggle_tab_visiblity('wiki', False)
self.check_toggle_tab_visiblity('wiki', True)
def test_toggle_invalid_tab_visibility(self):
"""Test toggling visibility of an invalid tab"""