Commit 08f21fab authored by Jérome Perrin's avatar Jérome Perrin

officejs_support_request_ui_test: check service worker first

This might fix flaky "testLogin". One theory is that a service worker
request to fill the cache happens while the selenium browser logs out,
which cause browser to keeps the authentication cookie.

This test waits for service worker to have filled the cache. We also
change the name (00) to run it first, so that subsequent tests are
executed with the cache already pre-filled.
parent 7a9c2b49
......@@ -46,7 +46,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>testServiceWorker</string> </value>
<value> <string>test00ServiceWorker</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
......
......@@ -11,6 +11,21 @@
</thead><tbody>
<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" />
<tr>
<td colspan="3"><b>Check default web site service worker, also to fill cache</b></td>
</tr>
<tr>
<td>open</td>
<td>${base_url}/web_site_module/erp5_officejs_support_request_ui/#/?page=test_service_worker</td>
<td></td>
</tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_app_loaded" />
<tr>
<td>waitForTextPresent</td>
<td>Has SW: true</td>
<td></td>
</tr>
<tr>
<td colspan="3"><b tal:content="python: 'Clone web site'"></b></td>
</tr>
......
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