Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
bb97b590
Commit
bb97b590
authored
Apr 22, 2024
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_erp5_ui_test: Reintroduce renderjs_oss minimal tests
parent
2726bac8
Pipeline
#34184
failed with stage
in 0 seconds
Changes
22
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
15 additions
and
791 deletions
+15
-791
master/bt5/slapos_erp5_ui_test/PathTemplateItem/portal_tests/renderjs_oss_zuite.xml
...test/PathTemplateItem/portal_tests/renderjs_oss_zuite.xml
+1
-1
master/bt5/slapos_erp5_ui_test/PathTemplateItem/portal_tests/renderjs_oss_zuite/testSlapOSJSRenderJSOSS0ServiceWorker.xml
...derjs_oss_zuite/testSlapOSJSRenderJSOSS0ServiceWorker.xml
+0
-0
master/bt5/slapos_erp5_ui_test/PathTemplateItem/portal_tests/renderjs_oss_zuite/testSlapOSJSRenderJSOSS0ServiceWorker.zpt
...derjs_oss_zuite/testSlapOSJSRenderJSOSS0ServiceWorker.zpt
+2
-2
master/bt5/slapos_erp5_ui_test/PathTemplateItem/portal_tests/renderjs_oss_zuite/testSlapOSJSRenderJSOSSBasicNavigation.xml
...erjs_oss_zuite/testSlapOSJSRenderJSOSSBasicNavigation.xml
+0
-0
master/bt5/slapos_erp5_ui_test/PathTemplateItem/portal_tests/renderjs_oss_zuite/testSlapOSJSRenderJSOSSBasicNavigation.zpt
...erjs_oss_zuite/testSlapOSJSRenderJSOSSBasicNavigation.zpt
+1
-1
master/bt5/slapos_erp5_ui_test/TestTemplateItem/portal_components/test.erp5.testFunctionalSlapOSRenderJSOSSUIHalStyle.py
...ts/test.erp5.testFunctionalSlapOSRenderJSOSSUIHalStyle.py
+1
-1
master/bt5/slapos_erp5_ui_test/TestTemplateItem/portal_components/test.erp5.testFunctionalSlapOSRenderJSOSSUIHalStyle.xml
...s/test.erp5.testFunctionalSlapOSRenderJSOSSUIHalStyle.xml
+0
-0
master/bt5/slapos_erp5_ui_test/bt/dependency_list
master/bt5/slapos_erp5_ui_test/bt/dependency_list
+2
-0
master/bt5/slapos_erp5_ui_test/bt/description
master/bt5/slapos_erp5_ui_test/bt/description
+1
-0
master/bt5/slapos_erp5_ui_test/bt/license
master/bt5/slapos_erp5_ui_test/bt/license
+1
-0
master/bt5/slapos_erp5_ui_test/bt/template_format_version
master/bt5/slapos_erp5_ui_test/bt/template_format_version
+1
-0
master/bt5/slapos_erp5_ui_test/bt/template_path_list
master/bt5/slapos_erp5_ui_test/bt/template_path_list
+2
-0
master/bt5/slapos_erp5_ui_test/bt/template_test_id_list
master/bt5/slapos_erp5_ui_test/bt/template_test_id_list
+1
-0
master/bt5/slapos_erp5_ui_test/bt/title
master/bt5/slapos_erp5_ui_test/bt/title
+1
-0
master/bt5/slapos_erp5_ui_test/bt/version
master/bt5/slapos_erp5_ui_test/bt/version
+1
-0
master/bt5/slapos_jio_ui_test/PathTemplateItem/web_page_module/rjs_gadget_slapos_erp5_page_test_service_worker_html.html
...rjs_gadget_slapos_erp5_page_test_service_worker_html.html
+0
-22
master/bt5/slapos_jio_ui_test/PathTemplateItem/web_page_module/rjs_gadget_slapos_erp5_page_test_service_worker_html.xml
.../rjs_gadget_slapos_erp5_page_test_service_worker_html.xml
+0
-342
master/bt5/slapos_jio_ui_test/PathTemplateItem/web_page_module/rjs_gadget_slapos_erp5_page_test_service_worker_js.js
...ule/rjs_gadget_slapos_erp5_page_test_service_worker_js.js
+0
-73
master/bt5/slapos_jio_ui_test/PathTemplateItem/web_page_module/rjs_gadget_slapos_erp5_page_test_service_worker_js.xml
...le/rjs_gadget_slapos_erp5_page_test_service_worker_js.xml
+0
-342
master/bt5/slapos_jio_ui_test/bt/template_keep_last_workflow_history_only_path_list
...est/bt/template_keep_last_workflow_history_only_path_list
+0
-2
master/bt5/slapos_jio_ui_test/bt/template_path_list
master/bt5/slapos_jio_ui_test/bt/template_path_list
+0
-4
master/bt5/slapos_jio_ui_test/bt/template_test_id_list
master/bt5/slapos_jio_ui_test/bt/template_test_id_list
+0
-1
No files found.
master/bt5/slapos_
jio_ui_test/PathTemplateItem/portal_tests/slapos_
renderjs_oss_zuite.xml
→
master/bt5/slapos_
erp5_ui_test/PathTemplateItem/portal_tests/
renderjs_oss_zuite.xml
View file @
bb97b590
...
...
@@ -14,7 +14,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
slapos_
renderjs_oss_zuite
</string>
</value>
<value>
<string>
renderjs_oss_zuite
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
...
...
master/bt5/slapos_
jio_ui_test/PathTemplateItem/portal_tests/slapos_
renderjs_oss_zuite/testSlapOSJSRenderJSOSS0ServiceWorker.xml
→
master/bt5/slapos_
erp5_ui_test/PathTemplateItem/portal_tests/
renderjs_oss_zuite/testSlapOSJSRenderJSOSS0ServiceWorker.xml
View file @
bb97b590
File moved
master/bt5/slapos_
jio_ui_test/PathTemplateItem/portal_tests/slapos_
renderjs_oss_zuite/testSlapOSJSRenderJSOSS0ServiceWorker.zpt
→
master/bt5/slapos_
erp5_ui_test/PathTemplateItem/portal_tests/
renderjs_oss_zuite/testSlapOSJSRenderJSOSS0ServiceWorker.zpt
View file @
bb97b590
...
...
@@ -54,7 +54,7 @@
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/wait_for_activities"
/>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/${install_url}/#/?page=
test_service_worker
</td>
<td>
${base_url}/web_site_module/${install_url}/#/?page=
service_worker_test
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_SlapOSCommonTemplate/macros/wait_for_app_loaded"
/>
...
...
@@ -80,4 +80,4 @@
</table>
</body>
</html>
\ No newline at end of file
</html>
master/bt5/slapos_
jio_ui_test/PathTemplateItem/portal_tests/slapos_
renderjs_oss_zuite/testSlapOSJSRenderJSOSSBasicNavigation.xml
→
master/bt5/slapos_
erp5_ui_test/PathTemplateItem/portal_tests/
renderjs_oss_zuite/testSlapOSJSRenderJSOSSBasicNavigation.xml
View file @
bb97b590
File moved
master/bt5/slapos_
jio_ui_test/PathTemplateItem/portal_tests/slapos_
renderjs_oss_zuite/testSlapOSJSRenderJSOSSBasicNavigation.zpt
→
master/bt5/slapos_
erp5_ui_test/PathTemplateItem/portal_tests/
renderjs_oss_zuite/testSlapOSJSRenderJSOSSBasicNavigation.zpt
View file @
bb97b590
...
...
@@ -91,4 +91,4 @@
</tbody>
</table>
</body>
</html>
\ No newline at end of file
</html>
master/bt5/slapos_
jio
_ui_test/TestTemplateItem/portal_components/test.erp5.testFunctionalSlapOSRenderJSOSSUIHalStyle.py
→
master/bt5/slapos_
erp5
_ui_test/TestTemplateItem/portal_components/test.erp5.testFunctionalSlapOSRenderJSOSSUIHalStyle.py
View file @
bb97b590
...
...
@@ -31,7 +31,7 @@ from Products.ERP5Type.tests.ERP5TypeFunctionalTestCase import ERP5TypeFunctiona
class
TestSlapOSRenderJSOSSUIHalStyle
(
SlapOSTestCaseMixin
,
ERP5TypeFunctionalTestCase
):
foreground
=
0
run_only
=
"
slapos_
renderjs_oss_zuite"
run_only
=
"renderjs_oss_zuite"
def
afterSetUp
(
self
):
ERP5TypeFunctionalTestCase
.
afterSetUp
(
self
)
...
...
master/bt5/slapos_
jio
_ui_test/TestTemplateItem/portal_components/test.erp5.testFunctionalSlapOSRenderJSOSSUIHalStyle.xml
→
master/bt5/slapos_
erp5
_ui_test/TestTemplateItem/portal_components/test.erp5.testFunctionalSlapOSRenderJSOSSUIHalStyle.xml
View file @
bb97b590
File moved
master/bt5/slapos_erp5_ui_test/bt/dependency_list
0 → 100644
View file @
bb97b590
erp5_ui_test_core
erp5_web_renderjs_ui_test
\ No newline at end of file
master/bt5/slapos_erp5_ui_test/bt/description
0 → 100644
View file @
bb97b590
Unit test for SlapOS OSS custom site
master/bt5/slapos_erp5_ui_test/bt/license
0 → 100644
View file @
bb97b590
GPL
\ No newline at end of file
master/bt5/slapos_erp5_ui_test/bt/template_format_version
0 → 100644
View file @
bb97b590
1
\ No newline at end of file
master/bt5/slapos_erp5_ui_test/bt/template_path_list
0 → 100644
View file @
bb97b590
portal_tests/renderjs_oss_zuite
portal_tests/renderjs_oss_zuite/**
master/bt5/slapos_erp5_ui_test/bt/template_test_id_list
0 → 100644
View file @
bb97b590
test.erp5.testFunctionalSlapOSRenderJSOSSUIHalStyle
master/bt5/slapos_erp5_ui_test/bt/title
0 → 100644
View file @
bb97b590
slapos_erp5_ui_test
master/bt5/slapos_erp5_ui_test/bt/version
0 → 100644
View file @
bb97b590
1.0
\ No newline at end of file
master/bt5/slapos_jio_ui_test/PathTemplateItem/web_page_module/rjs_gadget_slapos_erp5_page_test_service_worker_html.html
deleted
100644 → 0
View file @
2726bac8
<!DOCTYPE html>
<html>
<head>
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width"
/>
<title>
SlapOS Test Service Worker
</title>
<link
rel=
"http://www.renderjs.org/rel/interface"
href=
"interface_page.html"
>
<!-- renderjs -->
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<script
src=
"domsugar.js"
type=
"text/javascript"
></script>
<script
src=
"jiodev.js"
type=
"text/javascript"
></script>
<script
src=
"gadget_global.js"
type=
"text/javascript"
></script>
<script
src=
"gadget_erp5_page_test_service_worker.js"
type=
"text/javascript"
></script>
</head>
<body>
</body>
</html>
master/bt5/slapos_jio_ui_test/PathTemplateItem/web_page_module/rjs_gadget_slapos_erp5_page_test_service_worker_html.xml
deleted
100644 → 0
View file @
2726bac8
This diff is collapsed.
Click to expand it.
master/bt5/slapos_jio_ui_test/PathTemplateItem/web_page_module/rjs_gadget_slapos_erp5_page_test_service_worker_js.js
deleted
100644 → 0
View file @
2726bac8
/*global window, rJS, RSVP, domsugar, navigator, promiseEventListener, jIO */
/*jslint nomen: true, indent: 2, maxerr: 3, maxlen: 80 */
(
function
(
window
,
rJS
,
RSVP
,
domsugar
,
navigator
,
promiseEventListener
,
jIO
)
{
"
use strict
"
;
rJS
(
window
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
getUrlForList
"
,
"
getUrlForList
"
)
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareMethod
(
'
render
'
,
function
()
{
var
gadget
=
this
;
// Wait a bit a allow the header loader to be displayed
return
new
RSVP
.
Queue
(
RSVP
.
delay
(
200
))
.
push
(
function
()
{
return
gadget
.
getUrlForList
([
// Home page
{
command
:
'
display
'
},
// Soft reload the gadget
{
command
:
'
change
'
}
]);
})
.
push
(
function
(
url_list
)
{
gadget
.
checkServiceWorkerStatus
();
return
gadget
.
updateHeader
({
page_title
:
'
Test Service Worker
'
,
front_url
:
url_list
[
0
],
tab_url
:
url_list
[
1
],
submit_action
:
true
});
});
})
.
declareMethod
(
"
triggerSubmit
"
,
function
()
{
var
gadget
=
this
;
return
new
RSVP
.
Queue
(
jIO
.
util
.
ajax
({
type
:
'
POST
'
,
url
:
'
./Base_changeModificationDateForTest
'
}))
.
push
(
function
()
{
domsugar
(
gadget
.
element
,
{
text
:
"
SW changed on server
"
});
});
})
.
declareJob
(
"
checkServiceWorkerStatus
"
,
function
()
{
var
gadget
=
this
,
has_service_worker
=
(
navigator
.
serviceWorker
.
controller
!==
null
);
domsugar
(
gadget
.
element
,
{
text
:
"
Has SW:
"
+
has_service_worker
.
toString
()
});
return
new
RSVP
.
Queue
(
navigator
.
serviceWorker
.
ready
)
.
push
(
function
(
worker_container
)
{
domsugar
(
gadget
.
element
,
{
text
:
"
Has SW: true
"
});
return
promiseEventListener
(
worker_container
.
active
,
'
statechange
'
);
})
.
push
(
function
()
{
// Wait a bit until the message is propagated
return
RSVP
.
delay
(
2000
);
})
.
push
(
function
()
{
domsugar
(
gadget
.
element
,
{
text
:
"
New SW ready
"
});
});
});
}(
window
,
rJS
,
RSVP
,
domsugar
,
navigator
,
promiseEventListener
,
jIO
));
\ No newline at end of file
master/bt5/slapos_jio_ui_test/PathTemplateItem/web_page_module/rjs_gadget_slapos_erp5_page_test_service_worker_js.xml
deleted
100644 → 0
View file @
2726bac8
This diff is collapsed.
Click to expand it.
master/bt5/slapos_jio_ui_test/bt/template_keep_last_workflow_history_only_path_list
deleted
100644 → 0
View file @
2726bac8
web_page_module/rjs_gadget_slapos_erp5_page_test_service_worker_html
web_page_module/rjs_gadget_slapos_erp5_page_test_service_worker_js
\ No newline at end of file
master/bt5/slapos_jio_ui_test/bt/template_path_list
View file @
bb97b590
portal_tests/slapos_renderjs_oss_zuite
portal_tests/slapos_renderjs_oss_zuite/**
portal_tests/slaposjs_zuite
portal_tests/slaposjs_zuite/**
web_page_module/rjs_gadget_slapos_erp5_page_test_service_worker_html
web_page_module/rjs_gadget_slapos_erp5_page_test_service_worker_js
\ No newline at end of file
master/bt5/slapos_jio_ui_test/bt/template_test_id_list
View file @
bb97b590
test.erp5.testFunctionalSlapOSUIHalStyle
test.erp5.testFunctionalSlapOSUIZHHalStyle
test.erp5.testFunctionalSlapOSRenderJSOSSUIHalStyle
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment