Fix Polymer 2 tests

Bug: Issue 10930
Change-Id: I4b798f44cd2e275dd3e86824ffa106f98dfbd783
This commit is contained in:
Dmitrii Filippov
2019-09-24 21:51:47 +02:00
parent f5d9ab7e59
commit 90d3cc50ce

View File

@@ -68,7 +68,8 @@ limitations under the License.
label = element.$$('label');
sandbox = sinon.sandbox.create();
flush(() => {
input = element.$.input.inputElement;
// In Polymer 2 inputElement isn't nativeInput anymore
input = element.$.input.$.nativeInput || element.$.input.inputElement;
done();
});
});