Commit bfdab32a authored by Roque's avatar Roque

erp5_officejs_ui_test: notebook jsmd viewer error handling test

parent 0f6210f0
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Notebook" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Access_contents_information_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Change_local_roles_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>_View_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>content_md5</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>notebook_test_cell_error_handling</string> </value>
</item>
<item>
<key> <string>language</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Notebook</string> </value>
</item>
<item>
<key> <string>short_title</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>text_content</string> </key>
<value> <string>\n
%% md\n
# Notebook JSMD Viewer Error Handling Test\n
\n
%% plugin\n
{\n
"languageId": "py",\n
"displayName": "python",\n
"codeMirrorMode": "python",\n
"keybinding": "p",\n
"url": "https://iodide.io/pyodide-demo/pyodide.js",\n
"module": "pyodide",\n
"evaluator": "runPython",\n
"pluginType": "language"\n
}\n
\n
%% js\n
pyodide.loadPackage(\'matplotlib\')\n
\n
%% md\n
#### cell 1\n
\n
%% code {"language":"py"}\n
import math\n
x = math.cos(2 * math.pi)\n
"cell 1 OK"\n
\n
%% md\n
#### cell 2\n
\n
%% code {"language":"py"}\n
"cell 2 OK"\n
x = 2 + cell2\n
x\n
\n
%% md\n
#### cell 3\n
\n
%% code {"language":"py"}\n
x = 2 + 2\n
"cell 3 OK"\n
\n
%% md\n
#### cell 4\n
\n
%% code {"language":"py"}\n
x = 2 + 2\n
"cell 4 OK"</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Notebook JSMD Viewer Error Handling Test</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?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>NotebookJSMDViewerErrorHandling</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>
<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 Notebook JSMD RenderJS UI</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Test Notebook JSMD RenderJS UI</td></tr>
</thead><tbody>
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" />
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/wait_for_activities" />
<tr>
<td>open</td>
<td>${base_url}/web_site_module/renderjs_runner/#/notebook_module/notebook_test_cell_error_handling</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//iframe</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//iframe[contains(@src, 'gadget_jsmd_viewer.html')]</td>
<td></td>
</tr>
<tr>
<td>selectFrame</td>
<td>index=0</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//body//iframe</td>
<td></td>
</tr>
<tr>
<td>selectFrame</td>
<td>index=0</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//h1[contains(text(),'Notebook JSMD Viewer Error Handling Test')]</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//code[contains(text(),'cell 1 OK')]</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//code[contains(text(),'cell 3 OK')]</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//code[contains(text(),'cell 4 OK')]</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//pre[contains(text(),'Error:')]</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//pre[contains(text(),"NameError: name 'cell2' is not defined")]</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
\ No newline at end of file
document_module/test_officejs_*
notebook_module/notebook_test_cell_error_handling
notebook_module/notebook_test_purejs
notebook_module/notebook_test_python_basic
portal_tests/officejs_ui_*_zuite
......
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