@@ -32,7 +32,7 @@ const variants = [
3232variants . forEach ( function ( { fixture, mime } ) {
3333 const fileName = fixture
3434 describe ( `${ mime } (${ fileName } )` , function ( ) {
35- const getWrapper = ( ) => cy . get ( '.text-editor__wrapper.has-conflicts' )
35+ const getWrapper = ( ) => cy . get ( '.viewer__content . text-editor__wrapper.has-conflicts' )
3636
3737 before ( ( ) => {
3838 initUserAndFiles ( user , fileName )
@@ -56,13 +56,13 @@ variants.forEach(function({ fixture, mime }) {
5656 cy . openFile ( fileName )
5757 cy . get ( '.text-editor .document-status .icon-error' )
5858 getWrapper ( )
59- . get ( '#read-only-editor' )
59+ . find ( '#read-only-editor' )
6060 . should ( 'contain' , 'Hello world' )
6161 getWrapper ( )
62- . get ( '.text-editor__main' )
62+ . find ( '.text-editor__main' )
6363 . should ( 'contain' , 'Hello world' )
6464 getWrapper ( )
65- . get ( '.text-editor__main' )
65+ . find ( '.text-editor__main' )
6666 . should ( 'contain' , 'cruel conflicting' )
6767 } )
6868
@@ -81,7 +81,7 @@ variants.forEach(function({ fixture, mime }) {
8181 cy . get ( '[data-cy="resolveThisVersion"]' ) . click ( )
8282
8383 getWrapper ( )
84- . get ( '#read-only-editor' )
84+ . find ( '#read-only-editor' )
8585 . should ( 'not.exist' )
8686
8787 cy . get ( '[data-cy="resolveThisVersion"]' )
@@ -106,11 +106,11 @@ variants.forEach(function({ fixture, mime }) {
106106 cy . openFile ( fileName )
107107
108108 getWrapper ( )
109- . get ( '[data-cy="resolveServerVersion"]' )
109+ . find ( '[data-cy="resolveServerVersion"]' )
110110 . click ( )
111111
112112 getWrapper ( )
113- . get ( '#read-only-editor' )
113+ . find ( '#read-only-editor' )
114114 . should ( 'not.exist' )
115115 cy . get ( '[data-cy="resolveThisVersion"]' )
116116 . should ( 'not.exist' )
0 commit comments