maildev@lists.thunderbird.net

Thunderbird email developers

View all threads

Selecting with a single class now works in mozmill tests

PM
Paul Morris
Mon, May 20, 2019 2:22 PM

A quick PSA for those writing mozmill tests:

Previously, to select an element by its class attribute you had to use
the whole list of classes in the right order.  Adding or removing
classes would break the test.

Now you can write selectors using a single class: {"class":
"just-one-class"}

https://bugzilla.mozilla.org/show_bug.cgi?id=1545142

https://hg.mozilla.org/comm-central/rev/92b567487475b1d9044a621c2e8829808ccb4858

-Paul

--
Paul Morris
Thunderbird.net

A quick PSA for those writing mozmill tests: Previously, to select an element by its class attribute you had to use the whole list of classes in the right order.  Adding or removing classes would break the test. Now you can write selectors using a single class: {"class": "just-one-class"} https://bugzilla.mozilla.org/show_bug.cgi?id=1545142 https://hg.mozilla.org/comm-central/rev/92b567487475b1d9044a621c2e8829808ccb4858 -Paul -- Paul Morris Thunderbird.net