Commit cd0761f2 authored by Ivan Tyagov's avatar Ivan Tyagov

Add a base method to change current skin (usable in Web Site testing).

parent cb6f741b
......@@ -317,6 +317,13 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
'Assignor', 'Author', 'Auditor', 'Associate'], [])
return PortalTestCase.login(self, user_name)
def changeSkin(self, skin_name):
"""
Change current Skin
"""
request = self.app.REQUEST
self.getPortal().portal_skins.changeSkin(skin_name)
request.set('portal_skin', skin_name)
def logout(self):
PortalTestCase.logout(self)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment