@@ -44,7 +44,7 @@ test('Can edit the page title via inspector', async t => {
44
44
await t
45
45
. click ( InspectorTitleProperty )
46
46
. typeText ( InspectorTitleProperty , '-2' )
47
- . click ( Selector ( '[name=" neos-content-main"]' ) )
47
+ . click ( Selector ( '# neos-Inspector' ) , { offsetX : - 400 } ) // hack to click into the iframe even with overlaying changes div in dom
48
48
. expect ( Selector ( '#neos-UnappliedChangesDialog' ) . exists )
49
49
. ok ( )
50
50
. click ( Selector ( '#neos-UnappliedChangesDialog-resume' ) )
@@ -55,19 +55,19 @@ test('Can edit the page title via inspector', async t => {
55
55
56
56
subSection ( 'Test unapplied changes dialog - discard' ) ;
57
57
await t
58
- . click ( Selector ( '[name=" neos-content-main"]' ) )
58
+ . click ( Selector ( '# neos-Inspector' ) , { offsetX : - 400 } ) // hack to click into the iframe even with overlaying changes div in dom
59
59
. click ( Selector ( '#neos-UnappliedChangesDialog-discard' ) )
60
60
. expect ( InspectorTitleProperty . value )
61
61
. eql ( 'Home-1' ) ;
62
62
63
63
subSection ( 'Test unapplied changes dialog - apply' ) ;
64
64
await t
65
65
. typeText ( InspectorTitleProperty , '-3' )
66
- . click ( Selector ( '[name=" neos-content-main"]' ) )
66
+ . click ( Selector ( '# neos-Inspector' ) , { offsetX : - 400 } ) // hack to click into the iframe even with overlaying changes div in dom
67
67
. click ( Selector ( '#neos-UnappliedChangesDialog-apply' ) )
68
68
. expect ( InspectorTitleProperty . value )
69
69
. eql ( 'Home-1-3' )
70
- . click ( Selector ( '[name=" neos-content-main"]' ) )
70
+ . click ( Selector ( '# neos-Inspector' ) , { offsetX : - 400 } ) // hack to click into the iframe even with overlaying changes div in dom
71
71
. expect ( Selector ( '#neos-UnappliedChangesDialog' ) . exists )
72
72
. notOk ( ) ;
73
73
} ) ;
0 commit comments