def test_create_proposal_visible_when_meeting_feature_enabled( self, browser): self.activate_feature('meeting') self.login(self.manager, browser) browser.open(self.branch_repofolder) tabbedview.open('Documents') self.assertEquals(['Create Proposal'], tabbedview.major_actions().text)
def test_visible_actions(self, browser): self.login(self.manager, browser) browser.open(self.branch_repofolder) tabbedview.open('Tasks') expected_actions = [ 'Export selection', 'Move Items', 'Print selection (PDF)', ] self.assertEquals(expected_actions, tabbedview.minor_actions().text) self.assertEquals([], tabbedview.major_actions().text)
def test_visible_actions(self, browser): # Not all actions of the dossier-tab work on the repositoryfolder-tab. # We are testing as Manager so that we can make sure that actions are # actually removed on this tab. self.login(self.manager, browser) browser.open(self.branch_repofolder) tabbedview.open('Documents') expected_actions = [ 'Copy Items', 'Checkout', 'Cancel', 'Checkin with comment', 'Checkin without comment', 'Export selection', 'Move Items', ] self.assertEquals(expected_actions, tabbedview.minor_actions().text) self.assertEquals([], tabbedview.major_actions().text)
def test_create_proposal_visible_when_meeting_feature_enabled(self, browser): self.activate_feature('meeting') self.login(self.manager, browser) browser.open(self.branch_repofolder) tabbedview.open('Documents') self.assertEquals(['Create Proposal'], tabbedview.major_actions().text)
def test_visible_actions(self, browser): self.login(self.regular_user, browser) browser.open(self.branch_repofolder) tabbedview.open('Proposals') self.assertEquals([], tabbedview.minor_actions().text) self.assertEquals([], tabbedview.major_actions().text)