Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
49ea8781
Commit
49ea8781
authored
Aug 19, 2024
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_js_style_test: XXX test web site acquisition
parent
9445fce1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
167 additions
and
0 deletions
+167
-0
bt5/erp5_web_js_style_test/PathTemplateItem/portal_tests/js_style_zuite/testJsStyleNoStyleWebSiteAcquisitionForbidden.xml
...e_zuite/testJsStyleNoStyleWebSiteAcquisitionForbidden.xml
+62
-0
bt5/erp5_web_js_style_test/PathTemplateItem/portal_tests/js_style_zuite/testJsStyleNoStyleWebSiteAcquisitionForbidden.zpt
...e_zuite/testJsStyleNoStyleWebSiteAcquisitionForbidden.zpt
+96
-0
bt5/erp5_web_js_style_test/SkinTemplateItem/portal_skins/erp5_web_js_style_test/ERP5Site_createWebJSStyleZuiteTestData.py
...b_js_style_test/ERP5Site_createWebJSStyleZuiteTestData.py
+9
-0
No files found.
bt5/erp5_web_js_style_test/PathTemplateItem/portal_tests/js_style_zuite/testJsStyleNoStyleWebSiteAcquisitionForbidden.xml
0 → 100644
View file @
49ea8781
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ZopePageTemplate"
module=
"Products.PageTemplates.ZopePageTemplate"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</tuple>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
expand
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
testJsStyleNoStyleWebSiteAcquisitionForbidden
</string>
</value>
</item>
<item>
<key>
<string>
output_encoding
</string>
</key>
<value>
<string>
utf-8
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<unicode></unicode>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_js_style_test/PathTemplateItem/portal_tests/js_style_zuite/testJsStyleNoStyleWebSiteAcquisitionForbidden.zpt
0 → 100644
View file @
49ea8781
<html
xmlns:tal=
"http://xml.zope.org/namespaces/tal"
xmlns:metal=
"http://xml.zope.org/namespaces/metal"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<title>
Test JS Style No Style
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><td
rowspan=
"1"
colspan=
"3"
>
Test JS Style No Style
</td></tr>
</thead><tbody>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/init"
/>
<tr>
<td>
open
</td>
<td>
${base_url}/ERP5Site_createWebJSStyleZuiteTestData?configuration=nostyle
</td>
<td></td>
</tr>
<tr>
<td>
assertTextPresent
</td>
<td>
Web Site created.
</td>
<td></td>
</tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplate/macros/wait_for_activities"
/>
<!-- Initialize -->
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/erp5_web_js_style_test_site/erp5_web_js_style_acquired_test_site
</td>
<td></td>
</tr>
<tr>
<td>
assertElementNotPresent
</td>
<td>
//head/link[@rel='prerender']
</td>
<td></td>
</tr>
<tr>
<td>
assertElementNotPresent
</td>
<td>
//head/link[@rel='alternate' and @type='application/rss+xml' and @href='feed.rss']
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//head/link[@rel='stylesheet' and @href='jsstyle.css']
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//head/link[@rel='stylesheet' and @href='jsstyle.css']
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//nav[@id='sitemap']/a[text()='No Style']
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//nav[@id='language']//a[@hreflang='en']
</td>
<td></td>
</tr>
<tr>
<td>
assertElementNotPresent
</td>
<td>
//aside[@id='document_list']
</td>
<td></td>
</tr>
<tr>
<td>
assertElementNotPresent
</td>
<td>
//div[@class='input']
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//main//h2[text()='Unexpected URL']
</td>
<td></td>
</tr>
<tr>
<td>
assertElementPresent
</td>
<td>
//main//p[text()='The URL should not rely on ID acquisition.']
</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
\ No newline at end of file
bt5/erp5_web_js_style_test/SkinTemplateItem/portal_skins/erp5_web_js_style_test/ERP5Site_createWebJSStyleZuiteTestData.py
View file @
49ea8781
...
...
@@ -10,6 +10,7 @@ web_section_portal_type = "Web Section"
person_portal_type
=
"Person"
web_site_id
=
"erp5_web_js_style_test_site"
acquired_web_site_id
=
"erp5_web_js_style_acquired_test_site"
web_section_id_prefix
=
"erp5_web_js_style_test_section_"
contributor_title
=
"erp5_web_js_style_test_contributor"
...
...
@@ -285,6 +286,14 @@ configuration_dict = {
### Web site
module
=
portal
.
getDefaultModule
(
web_site_portal_type
)
if
getattr
(
module
,
acquired_web_site_id
,
None
)
is
not
None
:
module
.
manage_delObjects
([
acquired_web_site_id
])
web_site
=
module
.
newContent
(
portal_type
=
web_site_portal_type
,
id
=
acquired_web_site_id
,
skin_selection_name
=
"View"
,
)
if
getattr
(
module
,
web_site_id
,
None
)
is
not
None
:
module
.
manage_delObjects
([
web_site_id
])
web_site
=
module
.
newContent
(
...
...
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