Lack of regex support in Dogtail's child method breaks Thunderbird tests
As part of releasing 5.16 I tried to run the Thunderbird tests (after reverting 4d9b13e6) and they fail with Dogtail::Node does not know how to handle argument type 'Regexp'
in the thunderbird_inbox
Ruby method.
But if I revert 64477fd3, the test passes:
commit 64477fd328908051d0e95855db7f2879addd7d07
Author: segfault <segfault@riseup.net>
Date: Sat Feb 25 17:11:02 2023 +0100
Test Suite: Don't override Dogtail's child method
The original child method already has regex support, we don't need to
implement it ourselves.
The code that uses a regex is:
folder_view.child(/^Inbox( .*)?$/, roleName: 'table row', recursive: false)
How are we supposed to use the regex support of the original child method?
Alternatively, do you foresee any problem if I revert the aforementioned commit? Did you do other work that relies on this commit?
Edited by intrigeri