@@ -31,13 +31,13 @@ context('Extra Settings', () => {
3131 codeOutput : '<script><</script>' ,
3232 } ) ;
3333
34- cy . findBlock ( 'code-block-pro' , 'pre' )
34+ cy . findBlock ( 'code-block-pro' , '> div > div > pre' )
3535 . invoke ( 'html' )
3636 . should ( 'not.contain' , encodeURI ( '<' ) ) ;
3737
3838 cy . previewCurrentPage ( ) ;
3939
40- cy . get ( '.wp-block-kevinbatdorf-code-block-pro pre' )
40+ cy . get ( '.wp-block-kevinbatdorf-code-block-pro pre.shiki ' )
4141 . should ( 'exist' )
4242 . should ( 'contain' , '<script><</script>' ) ;
4343 } ) ;
@@ -49,13 +49,13 @@ context('Extra Settings', () => {
4949
5050 cy . addCode ( '<script><</script>' ) ;
5151
52- cy . findBlock ( 'code-block-pro' , 'pre' )
52+ cy . findBlock ( 'code-block-pro' , '> div > div > pre' )
5353 . invoke ( 'html' )
5454 . should ( 'contain' , '>lt</span>' ) ; // formatted with highlighter
5555
5656 cy . previewCurrentPage ( ) ;
5757
58- cy . get ( '.wp-block-kevinbatdorf-code-block-pro pre' )
58+ cy . get ( '.wp-block-kevinbatdorf-code-block-pro pre.shiki ' )
5959 . should ( 'exist' )
6060 . should ( 'contain' , '<script><</script>' ) ;
6161 } ) ;
@@ -68,12 +68,12 @@ context('Extra Settings', () => {
6868
6969 cy . setLanguage ( 'plaintext' ) ;
7070 cy . addCode ( '[embed]foo[/embed]' ) ;
71- cy . findBlock ( 'code-block-pro' , 'pre' )
71+ cy . findBlock ( 'code-block-pro' , '> div > div > pre' )
7272 . invoke ( 'html' )
7373 . should ( 'contain' , '[embed]foo[/embed]' ) ; // Doesn't render
7474
7575 cy . previewCurrentPage ( ) ;
76- cy . get ( '.wp-block-kevinbatdorf-code-block-pro pre' )
76+ cy . get ( '.wp-block-kevinbatdorf-code-block-pro pre.shiki ' )
7777 . should ( 'exist' )
7878 . invoke ( 'html' )
7979 . should ( 'contain' , '<a href="http://foo">foo</a>' ) ; // Renders
@@ -82,12 +82,12 @@ context('Extra Settings', () => {
8282 cy . focusBlock ( 'code-block-pro' ) ;
8383 cy . openSideBarPanel ( 'Extra Settings' ) ;
8484 cy . get ( '[data-cy="use-escape-shortcodes"]' ) . check ( ) ;
85- cy . findBlock ( 'code-block-pro' , 'pre' )
85+ cy . findBlock ( 'code-block-pro' , '> div > div > pre' )
8686 . invoke ( 'html' )
8787 . should ( 'contain' , '[embed]foo[/embed]' ) ; // Doesn't render
8888
8989 cy . previewCurrentPage ( ) ;
90- cy . get ( '.wp-block-kevinbatdorf-code-block-pro pre' )
90+ cy . get ( '.wp-block-kevinbatdorf-code-block-pro pre.shiki ' )
9191 . should ( 'exist' )
9292 . invoke ( 'html' )
9393 . should ( 'contain' , '[embed]foo[/embed]' ) ; // Doesn't render
0 commit comments