def test_tasks_tab_can_be_disabled_by_feature_flag(self, browser): self.login(self.regular_user, browser) browser.open(self.branch_repofolder) self.assertIn('Tasks', tabbedview.tabs().text) self.deactivate_feature('repositoryfolder-tasks-tab') browser.reload() self.assertNotIn('Tasks', tabbedview.tabs().text)
def test_tasks_tab_can_be_disabled_by_feature_flag(self, browser): self.login(self.regular_user, browser) browser.open(self.branch_repofolder) self.assertIn('Tasks', tabbedview.tabs().text) self.deactivate_feature('repositoryfolder-tasks-tab') browser.reload() self.assertNotIn('Tasks', tabbedview.tabs().text)
def test_not_visible(self, browser): api.portal.set_registry_record('show_proposals_tab', False, IRepositoryFolderRecords) self.login(self.regular_user, browser) browser.open(self.branch_repofolder) expected_tabs = ['Dossiers', 'Documents', 'Tasks', 'Info'] self.assertEqual(tabbedview.tabs().text, expected_tabs)
def test_visible_tabs_for_regular_users(self, browser): self.login(self.regular_user, browser) browser.open(self.branch_repofolder) expected_tabs = [ 'Dossiers', 'Documents', 'Tasks', 'Info', ] self.assertEquals(expected_tabs, tabbedview.tabs().text)
def test_visible_tabs_for_regular_users(self, browser): self.login(self.regular_user, browser) browser.open(self.branch_repofolder) expected_tabs = [ 'Dossiers', 'Documents', 'Tasks', 'Info', ] self.assertEquals(expected_tabs, tabbedview.tabs().text)
def test_visible_tabs_for_administrator(self, browser): self.login(self.administrator, browser) browser.open(self.branch_repofolder) expected_tabs = [ 'Dossiers', 'Documents', 'Tasks', 'Info', 'Protected Objects', ] self.assertEquals(expected_tabs, tabbedview.tabs().text)
def test_visible_tabs_for_administrator(self, browser): self.login(self.administrator, browser) browser.open(self.branch_repofolder) expected_tabs = [ 'Dossiers', 'Documents', 'Tasks', 'Info', 'Protected Objects', ] self.assertEquals(expected_tabs, tabbedview.tabs().text)
def test_visible(self, browser): self.login(self.regular_user, browser) browser.open(self.branch_repofolder) expected_tabs = ['Dossiers', 'Documents', 'Tasks', 'Info', 'Proposals'] self.assertEqual(tabbedview.tabs().text, expected_tabs)
def test_not_visible(self, browser): api.portal.set_registry_record('show_proposals_tab', False, IRepositoryFolderRecords) self.login(self.regular_user, browser) browser.open(self.branch_repofolder) expected_tabs = ['Dossiers', 'Documents', 'Tasks', 'Info'] self.assertEqual(tabbedview.tabs().text, expected_tabs)
def test_visible(self, browser): self.login(self.regular_user, browser) browser.open(self.branch_repofolder) expected_tabs = ['Dossiers', 'Documents', 'Tasks', 'Info', 'Proposals'] self.assertEqual(tabbedview.tabs().text, expected_tabs)