Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kasra Jamshidi
erp5
Commits
08a0f37f
Commit
08a0f37f
authored
9 years ago
by
Sven Franck
Browse files
Options
Download
Email Patches
Plain Diff
erp5_web_ecommerce_test: update zelenium tests to echo screenshot text
parent
935a2cfc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
bt5/erp5_web_ecommerce_test/PathTemplateItem/portal_tests/erp5_web_e5g_ecommerce_ui_zuite/testE5gEcommerceBasicNavigation.xml
...5g_ecommerce_ui_zuite/testE5gEcommerceBasicNavigation.xml
+17
-0
No files found.
bt5/erp5_web_ecommerce_test/PathTemplateItem/portal_tests/erp5_web_e5g_ecommerce_ui_zuite/testE5gEcommerceBasicNavigation.xml
View file @
08a0f37f
...
@@ -106,6 +106,23 @@
...
@@ -106,6 +106,23 @@
<td>
//span[@data-i18n="E-COMMERCE"]
</td>
\n
<td>
//span[@data-i18n="E-COMMERCE"]
</td>
\n
<td>
E-COMMERCE
</td>
\n
<td>
E-COMMERCE
</td>
\n
</tr>
\n
</tr>
\n
<tr>
\n
<td>
pause
</td>
\n
<td>
5000
</td>
\n
<td></td>
\n
</tr>
\n
<!-- DEBUG -->
\n
<!-- storeEval can pass CSP. And iframe. -->
\n
<tr>
\n
<td>
storeEval
</td>
\n
<td>
function x(el){var n,a=[],w=document.createTreeWalker(el,NodeFilter.SHOW_TEXT,{acceptNode:function(m){if(!/^\\\\s*$/.test(m.data)){return NodeFilter.FILTER_ACCEPT;}}},false);while(n=w.nextNode())a.push(n);return a;}var i,len,t="",list=x(document.getElementById("selenium_myiframe").contentDocument.querySelector("body div"));for(i=0,len=list.length;i
<
len;i++){t+=list[i].nodeValue+" "}
</td>
\n
<td>
my_global_text
</td>
\n
</tr>
\n
<tr>
\n
<td>
echo
</td>
\n
<td>
${my_global_text}
</td>
\n
<td></td>
\n
</tr>
\n
<tr>
\n
<tr>
\n
<td>
waitForTextPresent
</td>
\n
<td>
waitForTextPresent
</td>
\n
<td>
Super Product
</td>
\n
<td>
Super Product
</td>
\n
...
...
This diff is collapsed.
Click to expand it.
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