erp5_web_renderjs_ui_test_core: allow clicking on a link only with its partial text
-
Owner
@romain I did not run the test locally, but we have new functional failures recently and this seems to be the cause.
https://erp5js.nexedi.net/#/test_result_module/20240207-5435B333/29 is an example failure, it clicks using
//div[contains(@data-gadget-scope, 'm')]//a[contains(text(), 'Bank Reconciliation') and contains(@href, '#!')]
and I think this expects to click on "Bank Reconciliation" fast input ( bt5/erp5_bank_reconciliation/ActionTemplateItem/portal_types/Bank%20Reconciliation/fast_input.xml ) but it now clicks on "Open Bank Reconciliation" workflow action https://lab.nexedi.com/nexedi/erp5/-/blob/e79a6eef31321855a3a9269f5f8fc9103f5bd689/bt5/erp5_bank_reconciliation/WorkflowTemplateItem/portal_workflow/bank_reconciliation_validation_workflow/transition_open_action.xml#L15
How about extending
click_configuration
dict to accept something likepartial_text_match: True
(that would be False by default for this case) ? -
Owner
Argh. Sorry for the mess. I'll fix.