Commit a0fc4b68 authored by Boxiang Sun's avatar Boxiang Sun

erp5_ui_test_core: Generate the correct selenium test URL for the test page

The previous implementation will generate URL like:
erp5/test_page_module/core/TestRunner.html?
Which missed the test created in portal_tests, the correct one should be:
erp5/test_page_module/portal_tests/user-Howto.Create.Persons/core/TestRunner.html?
This code was inspired by https://lab.nexedi.com/nexedi/erp5/blob/master/product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py#L86
parent 6e8a9e99
......@@ -8,4 +8,4 @@ zuite = context.getPortalObject().portal_tests.Zuite_addZuite(zuite_id)
for text, title in test_list:
zuite.Zuite_addTest(None, title, text)
return zuite.Base_redirect("core/TestRunner.html?auto=true&test=..%2Ftest_suite_html&resultsUrl=..%2FpostResults")
return zuite.Base_redirect("portal_tests/%s/core/TestRunner.html?auto=true&test=..%%2Ftest_suite_html&resultsUrl=..%%2FpostResults" % zuite_id)
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