@@ -78,7 +78,7 @@ describe('Dialog', async () => {
7878
7979 it ( 'should add a vNode in the dialog and show it' , async ( ) => {
8080 await editor . plugins . get ( Layout ) . add ( 'aaa' , 'float' ) ;
81- await editor . execCommand ( 'show' , { componentID : 'aaa' } ) ;
81+ await editor . execCommand ( 'show' , { componentId : 'aaa' } ) ;
8282 expect ( container . innerHTML . replace ( / [ \s \n ] + / g, ' ' ) ) . to . equal (
8383 [
8484 '<jw-editor>' ,
@@ -97,7 +97,7 @@ describe('Dialog', async () => {
9797 } ) ;
9898 it ( 'should add a vNode in dialog because dialog is the default zone' , async ( ) => {
9999 await editor . plugins . get ( Layout ) . add ( 'aaa' , 'not available zone' ) ;
100- await editor . execCommand ( 'show' , { componentID : 'aaa' } ) ;
100+ await editor . execCommand ( 'show' , { componentId : 'aaa' } ) ;
101101 expect ( container . innerHTML . replace ( / [ \s \n ] + / g, ' ' ) ) . to . equal (
102102 [
103103 '<jw-editor>' ,
@@ -116,10 +116,10 @@ describe('Dialog', async () => {
116116 } ) ;
117117 it ( 'should add 2 vNodes in the dialog and show it' , async ( ) => {
118118 await editor . plugins . get ( Layout ) . add ( 'aaa' , 'float' ) ;
119- await editor . execCommand ( 'show' , { componentID : 'aaa' } ) ;
119+ await editor . execCommand ( 'show' , { componentId : 'aaa' } ) ;
120120
121121 await editor . plugins . get ( Layout ) . add ( 'bbb' , 'not available zone' ) ;
122- await editor . execCommand ( 'show' , { componentID : 'bbb' } ) ;
122+ await editor . execCommand ( 'show' , { componentId : 'bbb' } ) ;
123123
124124 expect ( container . innerHTML . replace ( / [ \s \n ] + / g, ' ' ) ) . to . equal (
125125 [
@@ -147,10 +147,10 @@ describe('Dialog', async () => {
147147 } ) ;
148148 it ( 'should close 2 dialogs with the X button' , async ( ) => {
149149 await editor . plugins . get ( Layout ) . add ( 'aaa' , 'float' ) ;
150- await editor . execCommand ( 'show' , { componentID : 'aaa' } ) ;
150+ await editor . execCommand ( 'show' , { componentId : 'aaa' } ) ;
151151
152152 await editor . plugins . get ( Layout ) . add ( 'bbb' , 'not available zone' ) ;
153- await editor . execCommand ( 'show' , { componentID : 'bbb' } ) ;
153+ await editor . execCommand ( 'show' , { componentId : 'bbb' } ) ;
154154
155155 await click (
156156 Array . from ( container . querySelectorAll ( 'jw-dialog jw-button.jw-close' ) ) . pop ( ) ,
@@ -190,10 +190,10 @@ describe('Dialog', async () => {
190190 } ) ;
191191 it ( 'should close 2 dialogs it with the backdrop' , async ( ) => {
192192 await editor . plugins . get ( Layout ) . add ( 'aaa' , 'float' ) ;
193- await editor . execCommand ( 'show' , { componentID : 'aaa' } ) ;
193+ await editor . execCommand ( 'show' , { componentId : 'aaa' } ) ;
194194
195195 await editor . plugins . get ( Layout ) . add ( 'bbb' , 'not available zone' ) ;
196- await editor . execCommand ( 'show' , { componentID : 'bbb' } ) ;
196+ await editor . execCommand ( 'show' , { componentId : 'bbb' } ) ;
197197
198198 await click (
199199 Array . from ( container . querySelectorAll ( 'jw-dialog jw-backdrop.jw-close' ) ) . pop ( ) ,
@@ -232,7 +232,7 @@ describe('Dialog', async () => {
232232 } ) ;
233233 it ( 'should close a dialog and re-open a dialog' , async ( ) => {
234234 await editor . plugins . get ( Layout ) . add ( 'aaa' , 'float' ) ;
235- await editor . execCommand ( 'show' , { componentID : 'aaa' } ) ;
235+ await editor . execCommand ( 'show' , { componentId : 'aaa' } ) ;
236236
237237 await click (
238238 Array . from ( container . querySelectorAll ( 'jw-dialog jw-button.jw-close' ) ) . pop ( ) ,
@@ -243,7 +243,7 @@ describe('Dialog', async () => {
243243 ) ;
244244
245245 await editor . plugins . get ( Layout ) . add ( 'bbb' , 'not available zone' ) ;
246- await editor . execCommand ( 'show' , { componentID : 'bbb' } ) ;
246+ await editor . execCommand ( 'show' , { componentId : 'bbb' } ) ;
247247
248248 expect ( container . innerHTML . replace ( / [ \s \n ] + / g, ' ' ) ) . to . equal (
249249 [
@@ -264,7 +264,7 @@ describe('Dialog', async () => {
264264 } ) ;
265265 it ( 'should not close the dialog if click in content' , async ( ) => {
266266 await editor . plugins . get ( Layout ) . add ( 'bbb' , 'not available zone' ) ;
267- await editor . execCommand ( 'show' , { componentID : 'bbb' } ) ;
267+ await editor . execCommand ( 'show' , { componentId : 'bbb' } ) ;
268268
269269 await click ( Array . from ( container . querySelectorAll ( 'jw-dialog jw-content' ) ) . pop ( ) ) ;
270270
@@ -288,13 +288,13 @@ describe('Dialog', async () => {
288288 it ( 'should hide a vNode in dialog (without remove the vNode)' , async ( ) => {
289289 await editor . plugins . get ( Layout ) . add ( 'bbb' , 'not available zone' ) ;
290290
291- await editor . execCommand ( 'hide' , { componentID : 'bbb' } ) ;
291+ await editor . execCommand ( 'hide' , { componentId : 'bbb' } ) ;
292292
293293 expect ( container . innerHTML ) . to . equal (
294294 [ '<jw-editor>' , '<main></main>' , '</jw-editor>' ] . join ( '' ) ,
295295 ) ;
296296
297- await editor . execCommand ( 'show' , { componentID : 'bbb' } ) ;
297+ await editor . execCommand ( 'show' , { componentId : 'bbb' } ) ;
298298
299299 expect ( container . innerHTML . replace ( / [ \s \n ] + / g, ' ' ) ) . to . equal (
300300 [
@@ -383,7 +383,7 @@ describe('Dialog', async () => {
383383 const domLayoutEngine = editor . plugins . get ( Layout ) . engines . dom as DomLayoutEngine ;
384384 const vNode = domLayoutEngine . getNodes ( container . querySelector ( 'section' ) ) . pop ( ) ;
385385
386- await editor . execCommand ( 'hide' , { componentID : 'custom' } ) ;
386+ await editor . execCommand ( 'hide' , { componentId : 'custom' } ) ;
387387 expect ( container . innerHTML ) . to . equal (
388388 [ '<jw-editor>' , '<main></main>' , '</jw-editor>' ] . join ( '' ) ,
389389 ) ;
0 commit comments