Commit 286686c0 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 5c7b2b03
......@@ -8,4 +8,6 @@ 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")
ZELENIUM_BASE_URL = "portal_tests/%s/core/TestRunner.html?auto=true&test=../test_suite_html&resultsUrl=../postResults"
return zuite.Base_redirect(ZELENIUM_BASE_URL % 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