Bug 1721938 - [devtools] wait before clicking on angle swatch in browser_rules_cycle-angle.js r=Honza

Differential Revision: https://phabricator.services.mozilla.com/D123955
This commit is contained in:
Julian Descottes 2021-08-31 21:59:56 +00:00
Родитель ce2aeb6bf8
Коммит b339da2d6d
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -88,6 +88,15 @@ async function checkAngleCyclingPersist(inspector, view) {
}
async function checkSwatchShiftClick(container, win, expectedValue, comment) {
// Wait for 500ms before attempting a click to workaround frequent
// intermittents.
//
// See intermittent bug at https://bugzilla.mozilla.org/show_bug.cgi?id=1721938
// See potentially related bugs:
// - browserLoaded + synthesizeMouse timeouts https://bugzilla.mozilla.org/show_bug.cgi?id=1727749
// - mochitest general synthesize events issue https://bugzilla.mozilla.org/show_bug.cgi?id=1720248
await wait(500);
const swatch = container.querySelector(".ruleview-angleswatch");
const valueNode = container.querySelector(".ruleview-angle");