зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
cbe8e9b6dc
Коммит
be2dd10746
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче