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
141
Merge Requests
141
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
9a218010
Commit
9a218010
authored
Mar 09, 2020
by
Romain Courteaud
Committed by
Xiaowu Zhang
Apr 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_monaco_editor_ui_test: stop relying on data-i18n attributes
parent
a0ce27e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
28 deletions
+26
-28
bt5/erp5_monaco_editor_ui_test/PathTemplateItem/portal_tests/monaco_editor_zuite/testTextEditorRenderJSStyle.zpt
...tests/monaco_editor_zuite/testTextEditorRenderJSStyle.zpt
+26
-28
No files found.
bt5/erp5_monaco_editor_ui_test/PathTemplateItem/portal_tests/monaco_editor_zuite/testTextEditorRenderJSStyle.zpt
View file @
9a218010
...
@@ -30,12 +30,11 @@
...
@@ -30,12 +30,11 @@
<td>
${base_url}/web_site_module/renderjs_runner/#/web_page_module?editable=true
</td><td></td></tr>
<td>
${base_url}/web_site_module/renderjs_runner/#/web_page_module?editable=true
</td><td></td></tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_app_loaded"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_app_loaded"
/>
<tr><td>
waitForElementPresent
</td>
<tal:block
tal:define=
"click_configuration python: {'text': 'Add'}"
>
<td>
//a[@data-i18n='Add']
</td><td></td></tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_header_link"
/>
<tr><td>
click
</td>
</tal:block>
<td>
link=Add
</td><td></td></tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
<tr><td>
waitForElementPresent
</td>
<td>
//select[@name='field_your_select_action']
</td><td></td></tr>
<tr><td>
select
</td>
<tr><td>
select
</td>
<td>
//select[@name='field_your_select_action']
</td>
<td>
//select[@name='field_your_select_action']
</td>
<td>
label=Web Page
</td></tr>
<td>
label=Web Page
</td></tr>
...
@@ -45,16 +44,18 @@
...
@@ -45,16 +44,18 @@
'text': 'Object created.'}"
>
'text': 'Object created.'}"
>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification"
/>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification"
/>
</tal:block>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
<tal:block
tal:define=
"click_configuration python: {'text': 'Views'}"
>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_header_link"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
<tal:block
tal:define=
"click_configuration python: {'text': 'Edit'}"
>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_page_link"
/>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
<tr><td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="Views"]
</td><td></td></tr>
<tr><td>
click
</td>
<td>
//a[@data-i18n="Views"]
</td><td></td></tr>
<tr><td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="Edit"]
</td><td></td></tr>
<tr><td>
click
</td>
<td>
//a[@data-i18n="Edit"]
</td><td></td></tr>
<tr><td
colspan=
"3"
><b>
Wait for editor to be loaded
</b></td></tr>
<tr><td
colspan=
"3"
><b>
Wait for editor to be loaded
</b></td></tr>
...
@@ -73,23 +74,20 @@
...
@@ -73,23 +74,20 @@
<tr><td>
selectFrame
</td>
<tr><td>
selectFrame
</td>
<td>
relative=top
</td><td></td></tr>
<td>
relative=top
</td><td></td></tr>
<tr><td>
click
</td>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/save"
/>
<td>
//button[@data-i18n="Save"]
</td><td></td></tr>
<tal:block
tal:define=
"notification_configuration python: {'class': 'success',
'text': 'Data updated.'}"
>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification"
/>
</tal:block>
<tr><td
colspan=
"3"
><b>
Check that our edition is reflected on preview.
</b></td></tr>
<tr><td
colspan=
"3"
><b>
Check that our edition is reflected on preview.
</b></td></tr>
<tr><td>
waitForElementPresent
</td>
<tal:block
tal:define=
"click_configuration python: {'text': 'Views'}"
>
<td>
//a[@data-i18n="Views"]
</td><td></td></tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_header_link"
/>
<tr><td>
click
</td>
</tal:block>
<td>
//a[@data-i18n="Views"]
</td><td></td></tr>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
<tr><td>
waitForElementPresent
</td>
<td>
//a[@data-i18n="View"]
</td><td></td></tr>
<tal:block
tal:define=
"click_configuration python: {'text': 'View'}"
>
<tr><td>
click
</td>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_page_link"
/>
<td>
//a[@data-i18n="View"]
</td><td></td></tr>
</tal:block>
<tal:block
metal:use-macro=
"here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded"
/>
<tr><td>
waitForElementPresent
</td>
<tr><td>
waitForElementPresent
</td>
<td>
//div[@data-gadget-scope="editor"]//iframe
</td><td></td></tr>
<td>
//div[@data-gadget-scope="editor"]//iframe
</td><td></td></tr>
<tr><td>
selectFrame
</td>
<tr><td>
selectFrame
</td>
...
...
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