diff --git a/test/unit/aria.test.js b/test/unit/aria.test.js index b77a2f836..b6f1cf586 100644 --- a/test/unit/aria.test.js +++ b/test/unit/aria.test.js @@ -79,11 +79,11 @@ suite('aria', function () { 'Textarea has one aria-hidden parent' ); var mathSpeak = $(container).find('.mq-mathspeak'); - assert.equal(mathSpeak.length, 1, 'One mathspeak region'); + assert.equal(mathSpeak.length, 2, 'Two mathspeak regions'); assert.equal( mathSpeak.closest('[aria-hidden]="true"').length, 0, - 'Textarea has no aria-hidden parent' + 'Mathspeak has no aria-hidden parent' ); var nHiddenTexts = 0; var allChildren = $(container).find('*'); @@ -260,7 +260,7 @@ suite('aria', function () { mathField.blur(); setTimeout(function () { assert.equal( - mathField.__controller.textarea.getAttribute('aria-label'), + mathField.__controller.mathspeakSpan.textContent, 'Math Input: "s" "q" "r" "t" left parenthesis, "x" , right parenthesis' ); done();