Commit 4e24a5ba authored by Sven Franck's avatar Sven Franck

erp5_web_ehr_test: log and dump console before test fails

parent ad3bb4e7
...@@ -109,6 +109,12 @@ ...@@ -109,6 +109,12 @@
\n \n
\n \n
<!-- Initialize -->\n <!-- Initialize -->\n
<tr>\n
<td>storeEval</td>\n
<td>var myLog = console.log; window.dump_log = [];console.log = function(value) {window.dump_log.push(value);myLog.call(console, value);}</td>\n
<td>my_temp_console</td>\n
</tr>\n
\n
<tr>\n <tr>\n
<td>open</td>\n <td>open</td>\n
<td>${base_url}/web_site_module/e5g_ehr/</td>\n <td>${base_url}/web_site_module/e5g_ehr/</td>\n
...@@ -126,7 +132,17 @@ ...@@ -126,7 +132,17 @@
<td>${my_global_text}</td>\n <td>${my_global_text}</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n <tr>\n
<td>storeEval</td>\n
<td>window.dump_log</td>\n
<td>${my_console}</td>\n
</tr>\n
<tr>\n
<td>echo</td>\n
<td>${my_console}</td>\n
<td></td>\n
</tr>\n
<!-- DEBUG -->\n
<tr>\n <tr>\n
<td>waitForTextPresent</td>\n <td>waitForTextPresent</td>\n
<td>E-HR</td>\n <td>E-HR</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