File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,13 @@ describe("Sidebar navigation", () => {
3030 const contentSelector = `${ BASE } -content-${ disclosureName } ` ;
3131
3232 it ( `should open the the "${ disclosureName } " sidebar disclosure` , ( ) => {
33- cy . get ( `[data-cy="${ buttonSelector } "]` ) . click ( ) . should ( "have.attr" , "aria-expanded" , "true" ) ;
3433 // creates an alias for the content
3534 cy . get ( `[data-cy="${ contentSelector } "]` ) . as ( "currentContent" ) ;
35+ cy . get ( "@currentContent" ) . should ( "have.css" , "display" , "none" ) ;
36+ cy . get ( "@currentContent" ) . should ( "have.attr" , "hidden" , "hidden" ) ;
3637
37- cy . get ( "@currentContent" ) . scrollIntoView ( ) . should ( "be.visible" ) ;
38+ cy . get ( `[data-cy="${ buttonSelector } "]` ) . click ( ) . should ( "have.attr" , "aria-expanded" , "true" ) ;
39+ cy . get ( "@currentContent" ) . scrollIntoView ( ) . should ( "have.css" , "display" , "block" ) ;
3840 } ) ;
3941 } ) ;
4042
You can’t perform that action at this time.
0 commit comments