Bug 1317386 - Check pointer interactability upon interaction; r=automatedtester

Checking for general interactability will also consider keyboard
interactability, which has not yet been implemented.  On interacting with
an element by clicking, we should only test for pointer interactability.

MozReview-Commit-ID: BUCs7zHppRm

--HG--
extra : rebase_source : 2053a49ee4bcb291299568902e9ac25cc747bc5e
This commit is contained in:
Andreas Tolfsen 2016-11-14 21:07:42 +00:00
Родитель cbe8e9b6dc
Коммит be2dd10746
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -122,10 +122,10 @@ interaction.clickElement = function*(el, strict = false, specCompat = false) {
let interactable = false;
if (specCompat) {
if (!element.isInteractable(visibilityCheckEl)) {
el.scrollIntoView(false);
if (!element.isPointerInteractable(visibilityCheckEl)) {
element.scrollIntoView(el);
}
interactable = element.isInteractable(visibilityCheckEl);
interactable = element.isPointerInteractable(visibilityCheckEl);
} else {
interactable = element.isVisible(visibilityCheckEl);
}