Name: [FIX] test_base_automation: deflake custom reference field tour

State: Failed finished in 144m

PR State: merged

PR Author: Roy Le

PR Author Email:

PR: #1259

Committer: Roy Le

Committer Email: roy.le@viindoo.com

Commit: 6bdc500205154ffb3a98c957defd0c784ac70860

Description:

                                            [FIX] test_base_automation: deflake custom reference field tour

Switching the trigger from on_stage_set to on_tag_set swaps the relation
of trg_field_ref through an onchange round-trip. The tour could open the
autocomplete dropdown before that round-trip completed: it then listed
the records of the previous model and never refreshed, because the
(empty) field value did not change so the AutoComplete never closes it.
The guard added by ca1c63e363ce does not help: its descendant :not()
selector matches any child element and passes immediately.

Retry the second dropdown assertion: close (Escape) and reopen the
dropdown until the relation switch has landed, with a 10s cap.
Reproduced deterministically by delaying _compute_trg_field_ref by
500ms; the reworked tour passes under the same delay.
                                            

Branch: 17.0

Age:

Up-time: