Skip to content

Commit

Permalink
As we fixed ItemPrettyLinkAdapter._leadingIcons, check that it suppor…
Browse files Browse the repository at this point in the history
…ts special chars in transition or state title
  • Loading branch information
gbastien committed Jan 27, 2025
1 parent 2bb5cab commit 783a45a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Products/PloneMeeting/tests/testWFAdaptations.py
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,8 @@ def test_pm_Validate_workflowAdaptations_removed_return_to_proposing_group_with_
self.failIf(cfg.validate_workflowAdaptations(('return_to_proposing_group_with_last_validation',)))
self._process_transition_for_correcting_item(item, True)
self.assertEqual(item.query_state(), returned_to_proposing_group_last_state)
# check that pretty_link is displayed correctly
self.assertTrue(item.getPrettyLink())
self.assertEqual(
cfg.validate_workflowAdaptations(()),
return_to_proposing_group_removed_error)
Expand Down Expand Up @@ -1771,6 +1773,8 @@ def _return_to_proposing_group_with_validation_active_wf_functionality(self, all
self.failUnless(self.hasPermission(ModifyPortalContent, item))
# Now send item to the reviewer
self._process_transition_for_correcting_item(item, all)
# check that pretty_link is displayed correctly
self.assertTrue(item.getPrettyLink())
# the item creator may not be able to modify the item
self.changeUser('pmCreator1')
self.failIf(self.hasPermission(ModifyPortalContent, item))
Expand All @@ -1791,6 +1795,8 @@ def _return_to_proposing_group_with_validation_active_wf_functionality(self, all
# corresponding to the meeting frozen state, so 'itemfrozen'
self.do(item, 'return_to_proposing_group')
self._process_transition_for_correcting_item(item, all)
# check that pretty_link is displayed correctly
self.assertTrue(item.getPrettyLink())
self.changeUser('pmManager')
self.freezeMeeting(meeting)
self.do(item, 'backTo_itemfrozen_from_returned_to_proposing_group')
Expand Down

0 comments on commit 783a45a

Please sign in to comment.