Commit d28fed8a authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_web_renderjs_ui_test: cover case of orange highlight not displayed in...

erp5_web_renderjs_ui_test: cover case of orange highlight not displayed in rjs_gadget_erp5_emailfield_js with test
parent 85f5aafe
Pipeline #13397 passed with stage
in 0 seconds
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>request, value, **kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Foo_validateEmailThatAlwaysFails</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -85,6 +85,7 @@ ...@@ -85,6 +85,7 @@
<string>your_seventh_failure</string> <string>your_seventh_failure</string>
<string>your_eighth_failure</string> <string>your_eighth_failure</string>
<string>your_ninth_failure</string> <string>your_ninth_failure</string>
<string>your_tenth_failure</string>
</list> </list>
</value> </value>
</item> </item>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>external_validator</string>
<string>title</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>your_tenth_failure</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
<item>
<key> <unicode>not_email</unicode> </key>
<value> <string>You did not enter an email address.</string> </value>
</item>
<item>
<key> <unicode>required_not_found</unicode> </key>
<value> <string>Input is required but no input given.</string> </value>
</item>
<item>
<key> <unicode>too_long</unicode> </key>
<value> <string>Too much input was given.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>external_validator_field</string> </key>
<value> <string>ABC</string> </value>
</item>
<item>
<key> <string>field_external_validator</string> </key>
<value> <string>ABC</string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_email</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Tenth Failure</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Method" module="Products.Formulator.MethodField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>method_name</string> </key>
<value> <string>Foo_validateEmailThatAlwaysFails</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -128,6 +128,11 @@ ...@@ -128,6 +128,11 @@
<td>//label[@for="field_your_ninth_failure" and @class="is-invalid"]</td> <td>//label[@for="field_your_ninth_failure" and @class="is-invalid"]</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>assertElementPresent</td>
<td>//label[@for="field_your_tenth_failure" and @class="is-invalid"]</td>
<td></td>
</tr>
<tr> <tr>
<td>assertElementPresent</td> <td>assertElementPresent</td>
<td>//label[@for="field_your_seventh_failure" and @class="is-invalid"]</td> <td>//label[@for="field_your_seventh_failure" and @class="is-invalid"]</td>
...@@ -456,6 +461,42 @@ ...@@ -456,6 +461,42 @@
<td>//textarea[@name="field_your_fifth_failure" and @class="is-invalid"]</td> <td>//textarea[@name="field_your_fifth_failure" and @class="is-invalid"]</td>
<td></td> <td></td>
</tr> </tr>
<tr>
<td>type</td>
<td>field_your_tenth_failure</td>
<td>ok</td>
</tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/submit_dialog" />
<tr>
<td>assertElementPresent</td>
<td>//textarea[@name="field_your_fifth_failure" and @class="is-invalid"]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Please include an '@' in the email address. 'ok' is missing an '@'.</td>
<td></td>
</tr>
<tr>
<td>fireEvent</td>
<td>field_your_tenth_failure</td>
<td>blur</td>
</tr>
<tr>
<td>assertTextNotPresent</td>
<td>Please include an '@' in the email address. 'ok' is missing an '@'.</td>
<td></td>
</tr>
<tr>
<td>fireEvent</td>
<td>field_your_tenth_failure</td>
<td>focus</td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Please include an '@' in the email address. 'ok' is missing an '@'.</td>
<td></td>
</tr>
</tbody> </tbody>
</table> </table>
</body> </body>
......
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