From 7b1d0d1b8a1494ce75ef153e6837ad06ce59d551 Mon Sep 17 00:00:00 2001 From: Kristofer Krause Date: Mon, 20 Mar 2017 17:04:03 -0400 Subject: [PATCH] verify aria-hidden value --- test/javascript/components/tooltip.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/javascript/components/tooltip.js b/test/javascript/components/tooltip.js index b755ad758..f529337d9 100644 --- a/test/javascript/components/tooltip.js +++ b/test/javascript/components/tooltip.js @@ -59,6 +59,7 @@ describe('Tooltip', function() { plugin = new Foundation.Tooltip($html, {}); plugin.$element.should.have.attr('aria-describedby', plugin.template.attr('id')); + plugin.template.should.have.attr('aria-hidden', 'true'); plugin.template.should.have.attr('role', 'tooltip'); }); @@ -81,6 +82,7 @@ describe('Tooltip', function() { plugin.show(); plugin.template.should.be.visible; + plugin.template.should.have.attr('aria-hidden', 'false'); }); it('fires show.zf.tooltip event', function(done) { @@ -107,6 +109,7 @@ describe('Tooltip', function() { plugin.hide(); plugin.template.should.be.hidden; + plugin.template.should.have.attr('aria-hidden', 'true'); }); it('fires hide.zf.tooltip event', function(done) { @@ -132,6 +135,7 @@ describe('Tooltip', function() { plugin.toggle(); plugin.template.should.be.visible; + plugin.template.should.have.attr('aria-hidden', 'false'); }); it('hides a visible tooltip', function() { $html = $(template).appendTo('body'); @@ -142,6 +146,7 @@ describe('Tooltip', function() { plugin.toggle(); plugin.template.should.be.hidden; + plugin.template.should.have.attr('aria-hidden', 'true'); }); }); -- 2.47.2