Commit 76f9d9ac authored by Romain Courteaud's avatar Romain Courteaud

erp5_web_renderjs_ui_test_core: allow clicking on the partial text match

Parameter `partial_text_match` added

Fixup 84281a2a
parent 2c654468
...@@ -541,11 +541,20 @@ ...@@ -541,11 +541,20 @@
<tr> <tr>
<td colspan="3"><b tal:content="python: 'Click on panel link \'%(text)s\'' % click_configuration"></b></td> <td colspan="3"><b tal:content="python: 'Click on panel link \'%(text)s\'' % click_configuration"></b></td>
</tr> </tr>
<tal:block tal:condition="python: click_configuration.get('partial_text_match', False)">
<tr>
<td>click</td>
<td tal:content="python: '//div[contains(@data-gadget-scope, \'panel\')]//a[contains(text(), \'%s\') and contains(@href, \'#!\')]' % click_configuration['text']"></td>
<td></td>
</tr>
</tal:block>
<tal:block tal:condition="python: not click_configuration.get('partial_text_match', False)">
<tr> <tr>
<td>click</td> <td>click</td>
<td tal:content="python: '//div[contains(@data-gadget-scope, \'panel\')]//a[text()=\'%s\' and contains(@href, \'#!\')]' % click_configuration['text']"></td> <td tal:content="python: '//div[contains(@data-gadget-scope, \'panel\')]//a[text()=\'%s\' and contains(@href, \'#!\')]' % click_configuration['text']"></td>
<td></td> <td></td>
</tr> </tr>
</tal:block>
<tr> <tr>
<td colspan="3"><p></p></td> <td colspan="3"><p></p></td>
</tr> </tr>
...@@ -555,11 +564,20 @@ ...@@ -555,11 +564,20 @@
<tr> <tr>
<td colspan="3"><b tal:content="python: 'Click on header link \'%(text)s\'' % click_configuration"></b></td> <td colspan="3"><b tal:content="python: 'Click on header link \'%(text)s\'' % click_configuration"></b></td>
</tr> </tr>
<tal:block tal:condition="python: click_configuration.get('partial_text_match', False)">
<tr>
<td>click</td>
<td tal:content="python: '//div[contains(@data-gadget-scope, \'header\')]//a[contains(text(), \'%s\') and contains(@href, \'#!\')]' % click_configuration['text']"></td>
<td></td>
</tr>
</tal:block>
<tal:block tal:condition="python: not click_configuration.get('partial_text_match', False)">
<tr> <tr>
<td>click</td> <td>click</td>
<td tal:content="python: '//div[contains(@data-gadget-scope, \'header\')]//a[text()=\'%s\' and contains(@href, \'#!\')]' % click_configuration['text']"></td> <td tal:content="python: '//div[contains(@data-gadget-scope, \'header\')]//a[text()=\'%s\' and contains(@href, \'#!\')]' % click_configuration['text']"></td>
<td></td> <td></td>
</tr> </tr>
</tal:block>
<tr> <tr>
<td colspan="3"><p></p></td> <td colspan="3"><p></p></td>
</tr> </tr>
...@@ -569,11 +587,20 @@ ...@@ -569,11 +587,20 @@
<tr> <tr>
<td colspan="3"><b tal:content="python: 'Click on page link \'%(text)s\'' % click_configuration"></b></td> <td colspan="3"><b tal:content="python: 'Click on page link \'%(text)s\'' % click_configuration"></b></td>
</tr> </tr>
<tal:block tal:condition="python: click_configuration.get('partial_text_match', False)">
<tr> <tr>
<td>click</td> <td>click</td>
<td tal:content="python: '//div[contains(@data-gadget-scope, \'m\')]//a[contains(text(), \'%s\') and contains(@href, \'#!\')]' % click_configuration['text']"></td> <td tal:content="python: '//div[contains(@data-gadget-scope, \'m\')]//a[contains(text(), \'%s\') and contains(@href, \'#!\')]' % click_configuration['text']"></td>
<td></td> <td></td>
</tr> </tr>
</tal:block>
<tal:block tal:condition="python: not click_configuration.get('partial_text_match', False)">
<tr>
<td>click</td>
<td tal:content="python: '//div[contains(@data-gadget-scope, \'m\')]//a[text()=\'%s\' and contains(@href, \'#!\')]' % click_configuration['text']"></td>
<td></td>
</tr>
</tal:block>
<tr> <tr>
<td colspan="3"><p></p></td> <td colspan="3"><p></p></td>
</tr> </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