Commit 08a0f37f authored by Sven Franck's avatar Sven Franck

erp5_web_ecommerce_test: update zelenium tests to echo screenshot text

parent 935a2cfc
......@@ -106,6 +106,23 @@
<td>//span[@data-i18n="E-COMMERCE"]</td>\n
<td>E-COMMERCE</td>\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&lt;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
<td>waitForTextPresent</td>\n
<td>Super Product</td>\n
......
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