UNPKG

siesta-lite

Version:

Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers

37 lines (27 loc) 982 B
/* Siesta 5.6.1 Copyright(c) 2009-2022 Bryntum AB https://bryntum.com/contact https://bryntum.com/products/siesta/license */ Class('Ariadne.ExtJSDomQueryFinder.Identifier.AttributeValue', { isa : Ariadne.DomQueryFinder.Identifier.AttributeValue, does : Ariadne.ExtJSDomQueryFinder.Role.ExtJSHelper, has : { // an array of attribute names, which can be used for matching attributes : function () { return [ 'data-ref', 'aria-label' ] } }, methods : { ignoreAttribute : function (target, attributeName) { var value = target.getAttribute(attributeName) var cmp = this.getComponentOfDomElement(target) if (cmp && this.valueIsAutoGeneratedByComponent(cmp, value)) return true return this.SUPERARG(arguments) } } });