File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ const TIMEOUT_MS = 40000;
4040 url : "/static-dashboard" ,
4141 } ) ;
4242
43- sdkRoot ( ) . should ( "exist" ) ;
44- sdkRoot ( ) . within ( ( ) => {
43+ main ( ) . should ( "exist" ) ;
44+ main ( ) . within ( ( ) => {
4545 cy . findByRole ( "heading" , { name : "Static Dashboard Example" } ) . should (
4646 "exist" ,
4747 ) ;
@@ -62,8 +62,8 @@ const TIMEOUT_MS = 40000;
6262 url : "/interactive-dashboard" ,
6363 } ) ;
6464
65- sdkRoot ( ) . should ( "exist" ) ;
66- sdkRoot ( ) . within ( ( ) => {
65+ main ( ) . should ( "exist" ) ;
66+ main ( ) . within ( ( ) => {
6767 cy . findByRole ( "heading" , {
6868 name : "Interactive Dashboard Example" ,
6969 } ) . should ( "exist" ) ;
@@ -81,6 +81,6 @@ const TIMEOUT_MS = 40000;
8181 } ) ;
8282} ) ;
8383
84- function sdkRoot ( ) {
85- return cy . get ( "#metabase-sdk-root " , { timeout : TIMEOUT_MS } ) ;
84+ function main ( ) {
85+ return cy . get ( "main " , { timeout : TIMEOUT_MS } ) ;
8686}
You can’t perform that action at this time.
0 commit comments