@@ -139,7 +139,7 @@ export default () => {
139
139
document . activeElement . should . be . eql ( mcontent ( modal ) ) ;
140
140
} ) ;
141
141
142
- it ( "does not focus the modal content when shouldFocusAfterRender is false" , ( ) => {
142
+ it ( "does not focus modal content if shouldFocusAfterRender is false" , ( ) => {
143
143
const modal = renderModal (
144
144
{ isOpen : true , shouldFocusAfterRender : false } ,
145
145
null
@@ -317,7 +317,7 @@ export default () => {
317
317
isBodyWithReactModalOpenClass ( "testBodyClass" ) . should . not . be . ok ( ) ;
318
318
} ) ;
319
319
320
- it ( "should not remove classes from document.body when rendering unopened modal " , ( ) => {
320
+ it ( "should not remove classes from document.body if modal is closed " , ( ) => {
321
321
renderModal ( { isOpen : true } ) ;
322
322
isBodyWithReactModalOpenClass ( ) . should . be . ok ( ) ;
323
323
renderModal ( { isOpen : false , bodyOpenClassName : "testBodyClass" } ) ;
@@ -340,7 +340,7 @@ export default () => {
340
340
unmountModal ( ) ;
341
341
} ) ;
342
342
343
- it ( "adding/removing aria-hidden without an appElement will try to fallback to document.body " , ( ) => {
343
+ it ( "uses document.body for aria-hidden if no appElement" , ( ) => {
344
344
ariaAppHider . documentNotReadyOrSSRTesting ( ) ;
345
345
const node = document . createElement ( "div" ) ;
346
346
ReactDOM . render ( < Modal isOpen /> , node ) ;
@@ -349,7 +349,7 @@ export default () => {
349
349
should ( document . body . getAttribute ( "aria-hidden" ) ) . not . be . ok ( ) ;
350
350
} ) ;
351
351
352
- it ( "raise an exception if appElement is a selector and no elements were found. " , ( ) => {
352
+ it ( "raises an exception if the appElement selector does not match " , ( ) => {
353
353
should ( ( ) => ariaAppHider . setElement ( ".test" ) ) . throw ( ) ;
354
354
} ) ;
355
355
0 commit comments