Commit ec870128 authored by Ivan Tyagov's avatar Ivan Tyagov

Use proper PT renderer.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41269 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e1f04c09
...@@ -430,7 +430,8 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -430,7 +430,8 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional):
km_my_documents_gadget = portal_gadgets.km_my_documents km_my_documents_gadget = portal_gadgets.km_my_documents
km_my_contacts_gadget = portal_gadgets.km_my_contacts km_my_contacts_gadget = portal_gadgets.km_my_contacts
response = self.publish('%s/WebSite_viewHomeAreaFormRenderer' %self.web_site_url, self.auth) self.changeSkin('KM')
response = self.publish('%s/WebSite_viewKnowledgePad' %self.web_site_url, self.auth)
self.failUnless(self.web_front_knowledge_pad.getTitle() in response.getBody()) self.failUnless(self.web_front_knowledge_pad.getTitle() in response.getBody())
# Web Front gadgets # Web Front gadgets
...@@ -439,8 +440,9 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -439,8 +440,9 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional):
self.web_front_knowledge_pad.KnowledgePad_addBoxList(**{'uids':[gadget.getUid()]}) self.web_front_knowledge_pad.KnowledgePad_addBoxList(**{'uids':[gadget.getUid()]})
self.stepTic() self.stepTic()
self.changeSkin('KM')
# check that gadgets are added to web front page view # check that gadgets are added to web front page view
response = self.publish('%s/WebSite_viewHomeAreaFormRenderer' %self.web_site_url, self.auth) response = self.publish('%s/WebSite_viewKnowledgePad' %self.web_site_url, self.auth)
for gadget in web_front_gadgets: for gadget in web_front_gadgets:
self.failUnless(gadget.getTitle() in response.getBody()) self.failUnless(gadget.getTitle() in response.getBody())
...@@ -769,7 +771,8 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -769,7 +771,8 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional):
request = self.app.REQUEST request = self.app.REQUEST
portal_gadgets = portal.portal_gadgets portal_gadgets = portal.portal_gadgets
response = self.publish('%s/WebSite_viewHomeAreaFormRenderer' %self.web_site_url, self.auth) self.changeSkin('KM')
response = self.publish('%s/WebSite_viewKnowledgePad' %self.web_site_url, self.auth)
self.failUnless(self.web_front_knowledge_pad.getTitle() in response.getBody()) self.failUnless(self.web_front_knowledge_pad.getTitle() in response.getBody())
gadget = portal_gadgets.km_latest_documents gadget = portal_gadgets.km_latest_documents
...@@ -778,25 +781,25 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -778,25 +781,25 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional):
self.changeSkin('KM') self.changeSkin('KM')
# check that gadgets are added to web front page view # check that gadgets are added to web front page view
response = self.publish('%s/WebSite_viewHomeAreaFormRenderer' %self.web_site_url, self.auth) response = self.publish('%s/WebSite_viewKnowledgePad' %self.web_site_url, self.auth)
self.failUnless(gadget.getTitle() in response.getBody()) self.failUnless(gadget.getTitle() in response.getBody())
# set non existent view_form # set non existent view_form
old_gadget_view_form_id = gadget.view_form_id old_gadget_view_form_id = gadget.view_form_id
gadget.view_form_id = 'NO_SUCH_FORM_EXISTS' gadget.view_form_id = 'NO_SUCH_FORM_EXISTS'
response = self.publish('%s/WebSite_viewHomeAreaFormRenderer' %self.web_site_url, self.auth) response = self.publish('%s/WebSite_viewKnowledgePad' %self.web_site_url, self.auth)
self.failUnless('Server side error' in response.getBody()) self.failUnless('Server side error' in response.getBody())
gadget.view_form_id = old_gadget_view_form_id gadget.view_form_id = old_gadget_view_form_id
response = self.publish('%s/WebSite_viewHomeAreaFormRenderer' %self.web_site_url, self.auth) response = self.publish('%s/WebSite_viewKnowledgePad' %self.web_site_url, self.auth)
self.failUnless('Server side error' not in response.getBody()) self.failUnless('Server side error' not in response.getBody())
# set non existent edit_form # set non existent edit_form
old_gadget_edit_form_id = gadget.edit_form_id old_gadget_edit_form_id = gadget.edit_form_id
gadget.edit_form_id = 'NO_SUCH_FORM_EXISTS' gadget.edit_form_id = 'NO_SUCH_FORM_EXISTS'
response = self.publish('%s/WebSite_viewHomeAreaFormRenderer' %self.web_site_url, self.auth) response = self.publish('%s/WebSite_viewKnowledgePad' %self.web_site_url, self.auth)
self.failUnless('Server side error' in response.getBody()) self.failUnless('Server side error' in response.getBody())
gadget.edit_form_id = old_gadget_edit_form_id gadget.edit_form_id = old_gadget_edit_form_id
response = self.publish('%s/WebSite_viewHomeAreaFormRenderer' %self.web_site_url, self.auth) response = self.publish('%s/WebSite_viewKnowledgePad' %self.web_site_url, self.auth)
self.failUnless('Server side error' not in response.getBody()) self.failUnless('Server side error' not in response.getBody())
def test_16WebSiteBrowserGadget(self, quiet=quiet, run=run_all_test): def test_16WebSiteBrowserGadget(self, quiet=quiet, run=run_all_test):
......
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