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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
erp5
Commits
5e598401
Commit
5e598401
authored
Jul 20, 2021
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_js_style&test: add meta tags for web site
parent
d4b9251e
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
889 additions
and
0 deletions
+889
-0
bt5/erp5_web_js_style/SkinTemplateItem/portal_skins/erp5_web_js_style_ui/WebSite_getOgLocaleDict.py
...tal_skins/erp5_web_js_style_ui/WebSite_getOgLocaleDict.py
+12
-0
bt5/erp5_web_js_style/SkinTemplateItem/portal_skins/erp5_web_js_style_ui/WebSite_getOgLocaleDict.xml
...al_skins/erp5_web_js_style_ui/WebSite_getOgLocaleDict.xml
+62
-0
bt5/erp5_web_js_style/SkinTemplateItem/portal_skins/erp5_web_js_style_ui/dialog_main.zpt
...ateItem/portal_skins/erp5_web_js_style_ui/dialog_main.zpt
+35
-0
bt5/erp5_web_js_style/SkinTemplateItem/portal_skins/erp5_web_js_style_ui/view_main.zpt
...plateItem/portal_skins/erp5_web_js_style_ui/view_main.zpt
+35
-0
bt5/erp5_web_js_style_test/PathTemplateItem/portal_tests/js_style_zuite/testJsStyleWebSiteFormWithMetaTag.xml
...ests/js_style_zuite/testJsStyleWebSiteFormWithMetaTag.xml
+58
-0
bt5/erp5_web_js_style_test/PathTemplateItem/portal_tests/js_style_zuite/testJsStyleWebSiteFormWithMetaTag.zpt
...ests/js_style_zuite/testJsStyleWebSiteFormWithMetaTag.zpt
+307
-0
bt5/erp5_web_js_style_test/PathTemplateItem/portal_tests/js_style_zuite/testJsStyleWebSiteWithMetaTag.xml
...al_tests/js_style_zuite/testJsStyleWebSiteWithMetaTag.xml
+58
-0
bt5/erp5_web_js_style_test/PathTemplateItem/portal_tests/js_style_zuite/testJsStyleWebSiteWithMetaTag.zpt
...al_tests/js_style_zuite/testJsStyleWebSiteWithMetaTag.zpt
+307
-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
+15
-0
No files found.
bt5/erp5_web_js_style/SkinTemplateItem/portal_skins/erp5_web_js_style_ui/WebSite_getOgLocaleDict.py
0 → 100644
View file @
5e598401
return
{
'en'
:
'en_US'
,
'de'
:
'de_DE'
,
'fa'
:
'fa_IR'
,
'fr'
:
'fr_FR'
,
'ja'
:
'ja_JP'
,
'ko'
:
'ko_KR'
,
'pl'
:
'pl_PL'
,
'pt'
:
'pt_BR'
,
'ru'
:
'ru_RU'
,
'zh'
:
'zh_CN'
}
bt5/erp5_web_js_style/SkinTemplateItem/portal_skins/erp5_web_js_style_ui/WebSite_getOgLocaleDict.xml
0 → 100644
View file @
5e598401
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<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>
_params
</string>
</key>
<value>
<string>
**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
WebSite_getOgLocaleDict
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_js_style/SkinTemplateItem/portal_skins/erp5_web_js_style_ui/dialog_main.zpt
View file @
5e598401
...
...
@@ -15,6 +15,14 @@
no_style_gadget_url python: web_section.WebSection_generateLayoutPropertyUrl('configuration_style_gadget_url');
no_style_css_url python: relative_url_prefix + 'jsstyle.css';
favicon_url python: web_section.WebSection_generateLayoutPropertyUrl('configuration_favicon_url');
site_name python: web_site.getTranslatedTitle();
document_title python: here.getTitle();
site_url python: web_site.absolute_url();
description python: here.getDescription();
preview_image_url python: web_section.WebSection_generateLayoutPropertyUrl('configuration_favicon_url');
keyword_list python: web_section.getSubjectList();
og_locale_dict python: web_site.WebSite_getOgLocaleDict();
current_language python: web_site.getPortalObject().Localizer.get_selected_language();
global_definitions_macros here/global_definitions/macros;"
>
<tal:block
metal:use-macro=
"global_definitions_macros/header_definitions"
/>
<html>
...
...
@@ -25,6 +33,33 @@
<tal:block
tal:condition=
"favicon_url"
>
<link
rel=
"icon"
tal:attributes=
"href favicon_url"
/>
</tal:block>
<tal:block
tal:condition=
"keyword_list"
>
<meta
name=
"keywords"
tal:attributes=
"content python: ','.join(keyword_list)"
>
</tal:block>
<meta
property=
"og:type"
content=
"website"
/>
<tal:block
tal:condition=
"site_url"
>
<meta
name=
"url"
tal:attributes=
"content site_url"
>
<meta
property=
"og:url"
tal:attributes=
"content site_url"
>
<meta
name=
"twitter:url"
tal:attributes=
"content site_url"
>
</tal:block>
<tal:block
tal:condition=
"document_title"
>
<meta
property=
"og:title"
tal:attributes=
"content document_title"
>
<meta
name=
"twitter:title"
tal:attributes=
"content document_title"
>
</tal:block>
<tal:block
tal:condition=
"preview_image_url"
>
<meta
property=
"og:image"
tal:attributes=
"content preview_image_url"
>
<meta
name=
"twitter:image"
tal:attributes=
"content preview_image_url"
>
</tal:block>
<tal:block
tal:condition=
"site_name"
>
<meta
name=
"application-name"
tal:attributes=
"content site_name"
>
<meta
property=
"og:site_name"
tal:attributes=
"content site_name"
>
</tal:block>
<tal:block
tal:condition=
"description"
>
<meta
name=
"description"
tal:attributes=
"content description"
>
<meta
property=
"og:description"
tal:attributes=
"content description"
>
<meta
name=
"twitter:description"
tal:attributes=
"content description"
>
</tal:block>
<meta
property=
"og:locale"
tal:attributes=
"content python: og_locale_dict[current_language]"
>
<tal:block
tal:condition=
"python: no_style_gadget_url == ''"
>
<link
rel=
"stylesheet"
tal:attributes=
"href no_style_css_url"
>
</tal:block>
...
...
bt5/erp5_web_js_style/SkinTemplateItem/portal_skins/erp5_web_js_style_ui/view_main.zpt
View file @
5e598401
...
...
@@ -14,6 +14,14 @@
no_style_gadget_url python: web_section.WebSection_generateLayoutPropertyUrl('configuration_style_gadget_url');
no_style_css_url python: relative_url_prefix + 'jsstyle.css';
favicon_url python: web_section.WebSection_generateLayoutPropertyUrl('configuration_favicon_url');
site_name python: web_site.getTranslatedTitle();
document_title python: here.getTitle();
site_url python: web_site.absolute_url();
description python: here.getDescription();
preview_image_url python: web_section.WebSection_generateLayoutPropertyUrl('configuration_favicon_url');
keyword_list python: web_section.getSubjectList();
og_locale_dict python: web_site.WebSite_getOgLocaleDict();
current_language python: web_site.getPortalObject().Localizer.get_selected_language();
global_definitions_macros here/global_definitions/macros;"
>
<tal:block
metal:use-macro=
"global_definitions_macros/header_definitions"
/>
<html>
...
...
@@ -24,6 +32,33 @@
<tal:block
tal:condition=
"favicon_url"
>
<link
rel=
"icon"
tal:attributes=
"href favicon_url"
/>
</tal:block>
<tal:block
tal:condition=
"keyword_list"
>
<meta
name=
"keywords"
tal:attributes=
"content python: ','.join(keyword_list)"
>
</tal:block>
<meta
property=
"og:type"
content=
"website"
/>
<tal:block
tal:condition=
"site_url"
>
<meta
name=
"url"
tal:attributes=
"content site_url"
>
<meta
property=
"og:url"
tal:attributes=
"content site_url"
>
<meta
name=
"twitter:url"
tal:attributes=
"content site_url"
>
</tal:block>
<tal:block
tal:condition=
"document_title"
>
<meta
property=
"og:title"
tal:attributes=
"content document_title"
>
<meta
name=
"twitter:title"
tal:attributes=
"content document_title"
>
</tal:block>
<tal:block
tal:condition=
"preview_image_url"
>
<meta
property=
"og:image"
tal:attributes=
"content preview_image_url"
>
<meta
name=
"twitter:image"
tal:attributes=
"content preview_image_url"
>
</tal:block>
<tal:block
tal:condition=
"site_name"
>
<meta
name=
"application-name"
tal:attributes=
"content site_name"
>
<meta
property=
"og:site_name"
tal:attributes=
"content site_name"
>
</tal:block>
<tal:block
tal:condition=
"description"
>
<meta
name=
"description"
tal:attributes=
"content description"
>
<meta
property=
"og:description"
tal:attributes=
"content description"
>
<meta
name=
"twitter:description"
tal:attributes=
"content description"
>
</tal:block>
<meta
property=
"og:locale"
tal:attributes=
"content python: og_locale_dict[current_language]"
>
<tal:block
tal:condition=
"python: no_style_gadget_url == ''"
>
<link
rel=
"stylesheet"
tal:attributes=
"href no_style_css_url"
>
</tal:block>
...
...
bt5/erp5_web_js_style_test/PathTemplateItem/portal_tests/js_style_zuite/testJsStyleWebSiteFormWithMetaTag.xml
0 → 100644
View file @
5e598401
<?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=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<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>
testJsStyleWebSiteFormWithMetaTag
</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/testJsStyleWebSiteFormWithMetaTag.zpt
0 → 100644
View file @
5e598401
<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 Demo Style
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><td
rowspan=
"1"
colspan=
"3"
>
Test JS Style Demo 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=meta_tag_form
</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/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value='Meta Tag Form']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='url' and @content='${base_url}/web_site_module/erp5_web_js_style_test_site']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:url' and @content='${base_url}/web_site_module/erp5_web_js_style_test_site']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:url' and @content='${base_url}/web_site_module/erp5_web_js_style_test_site']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:title' and @content='Meta Tag Form']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:title' and @content='Meta Tag Form']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:image' and @content='favicon.ico']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:image' and @content='favicon.ico']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='application-name' and @content='Meta Tag Form']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:site_name' and @content='Meta Tag Form']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='description' and @content='this is a form description']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:description' and @content='this is a form description']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:description' and @content='this is a form description']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='keywords' and @content='keyword1,keyword2']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:type' and @content='website']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:locale' and @content='en_US']
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/erp5_web_js_style_test_site/fr
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//input[@value='Meta Tag Form']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='url' and @content='${base_url}/web_site_module/erp5_web_js_style_test_site/fr']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:url' and @content='${base_url}/web_site_module/erp5_web_js_style_test_site/fr']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:url' and @content='${base_url}/web_site_module/erp5_web_js_style_test_site/fr']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:title' and @content='Meta Tag Form']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:title' and @content='Meta Tag Form']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:image' and @content='favicon.ico']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:image' and @content='favicon.ico']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='application-name' and @content='Meta Tag Form']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:site_name' and @content='Meta Tag Form']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='description' and @content='this is a form description']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:description' and @content='this is a form description']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:description' and @content='this is a form description']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='keywords' and @content='keyword1,keyword2']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:type' and @content='website']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:locale' and @content='fr_FR']
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/erp5_web_js_style_test_site/erp5_web_js_style_test_section_1
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//h1[text()='Demo Section 1']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='url' and @content='${base_url}/web_site_module/erp5_web_js_style_test_site']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:url' and @content='${base_url}/web_site_module/erp5_web_js_style_test_site']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:url' and @content='${base_url}/web_site_module/erp5_web_js_style_test_site']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:title' and @content='Demo Section 1']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:title' and @content='Demo Section 1']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:image' and @content='favicon.ico']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:image' and @content='favicon.ico']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='application-name' and @content='Meta Tag Form']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:site_name' and @content='Meta Tag Form']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:type' and @content='website']
</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
\ No newline at end of file
bt5/erp5_web_js_style_test/PathTemplateItem/portal_tests/js_style_zuite/testJsStyleWebSiteWithMetaTag.xml
0 → 100644
View file @
5e598401
<?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=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<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>
testJsStyleWebSiteWithMetaTag
</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/testJsStyleWebSiteWithMetaTag.zpt
0 → 100644
View file @
5e598401
<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 Demo Style
</title>
</head>
<body>
<table
cellpadding=
"1"
cellspacing=
"1"
border=
"1"
>
<thead>
<tr><td
rowspan=
"1"
colspan=
"3"
>
Test JS Style Demo 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=meta_tag
</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/
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//span[text()='Meta Tag']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='url' and @content='${base_url}/web_site_module/erp5_web_js_style_test_site']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:url' and @content='${base_url}/web_site_module/erp5_web_js_style_test_site']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:url' and @content='${base_url}/web_site_module/erp5_web_js_style_test_site']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:title' and @content='Meta Tag']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:title' and @content='Meta Tag']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:image' and @content='favicon.ico']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:image' and @content='favicon.ico']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='application-name' and @content='Meta Tag']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:site_name' and @content='Meta Tag']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='description' and @content='this is a description']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:description' and @content='this is a description']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:description' and @content='this is a description']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='keywords' and @content='keyword1,keyword2']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:type' and @content='website']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:locale' and @content='en_US']
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/erp5_web_js_style_test_site/fr
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//span[text()='Meta Tag']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='url' and @content='${base_url}/web_site_module/erp5_web_js_style_test_site/fr']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:url' and @content='${base_url}/web_site_module/erp5_web_js_style_test_site/fr']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:url' and @content='${base_url}/web_site_module/erp5_web_js_style_test_site/fr']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:title' and @content='Meta Tag']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:title' and @content='Meta Tag']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:image' and @content='favicon.ico']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:image' and @content='favicon.ico']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='application-name' and @content='Meta Tag']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:site_name' and @content='Meta Tag']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='description' and @content='this is a description']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:description' and @content='this is a description']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:description' and @content='this is a description']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='keywords' and @content='keyword1,keyword2']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:type' and @content='website']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:locale' and @content='fr_FR']
</td>
<td></td>
</tr>
<tr>
<td>
open
</td>
<td>
${base_url}/web_site_module/erp5_web_js_style_test_site/erp5_web_js_style_test_section_1
</td>
<td></td>
</tr>
<tr>
<td>
waitForElementPresent
</td>
<td>
//h1[text()='Demo Section 1']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='url' and @content='${base_url}/web_site_module/erp5_web_js_style_test_site']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:url' and @content='${base_url}/web_site_module/erp5_web_js_style_test_site']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:url' and @content='${base_url}/web_site_module/erp5_web_js_style_test_site']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:title' and @content='Demo Section 1']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:title' and @content='Demo Section 1']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:image' and @content='favicon.ico']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='twitter:image' and @content='favicon.ico']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@name='application-name' and @content='Meta Tag']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:site_name' and @content='Meta Tag']
</td>
<td></td>
</tr>
<tr>
<td>
verifyElementPresent
</td>
<td>
//meta[@property='og:type' and @content='website']
</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 @
5e598401
...
...
@@ -148,6 +148,21 @@ configuration_dict = {
'custom_render_method_id'
:
'WebSite_viewJSStyleTestDialog'
,
'site_map_section_parent'
:
True
},
'meta_tag'
:
{
'title'
:
'Meta Tag'
,
'description'
:
'this is a description'
,
'subject_list'
:
[
'keyword1'
,
'keyword2'
],
'configuration_favicon_url'
:
'favicon.ico'
,
'site_map_section_parent'
:
True
},
'meta_tag_form'
:{
'title'
:
'Meta Tag Form'
,
'description'
:
'this is a form description'
,
'subject_list'
:
[
'keyword1'
,
'keyword2'
],
'configuration_favicon_url'
:
'favicon.ico'
,
'custom_render_method_id'
:
'WebSite_viewJSStyleTestDialog'
,
'site_map_section_parent'
:
True
},
'language'
:
{
'configuration_style_gadget_url'
:
"jsstyle_demo.html"
,
'available_language_list'
:
[
'en'
,
'fr'
,
'zh'
],
...
...
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