diff --git a/test/iron-overlay.html b/test/iron-overlay.html index 2eafa20..fa94af1 100644 --- a/test/iron-overlay.html +++ b/test/iron-overlay.html @@ -437,7 +437,8 @@ test('node with autofocus is focused', function(done) { runAfterOpen(overlay, function() { - assert.isTrue(overlay.contentHost.contains(getDeepActiveElement()), + const autofocused = overlay.contentHost.querySelector('[autofocus]'); + assert.equal(getDeepActiveElement(), autofocused, '