@@ -118,7 +118,7 @@ describe("AdvancedVideo", () => {
118118 } ) ;
119119 await waitTicks ( 1 ) ;
120120
121- component . trigger ( "play" ) ;
121+ component . find ( "video" ) . trigger ( "play" ) ;
122122 await waitTicks ( 1 ) ;
123123
124124 expect ( component . emitted ( ) . play ) . toBeTruthy ( ) ;
@@ -134,7 +134,7 @@ describe("AdvancedVideo", () => {
134134 } ) ;
135135 await waitTicks ( 1 ) ;
136136
137- component . trigger ( "loadstart" ) ;
137+ component . find ( "video" ) . trigger ( "loadstart" ) ;
138138 await waitTicks ( 1 ) ;
139139
140140 expect ( component . emitted ( ) . loadstart ) . toBeTruthy ( ) ;
@@ -150,7 +150,7 @@ describe("AdvancedVideo", () => {
150150 } ) ;
151151 await waitTicks ( 1 ) ;
152152
153- component . trigger ( "ended" ) ;
153+ component . find ( "video" ) . trigger ( "ended" ) ;
154154 await waitTicks ( 1 ) ;
155155
156156 expect ( component . emitted ( ) . ended ) . toBeTruthy ( ) ;
@@ -166,7 +166,7 @@ describe("AdvancedVideo", () => {
166166 } ) ;
167167 await waitTicks ( 1 ) ;
168168
169- component . trigger ( "error" ) ;
169+ component . find ( "video" ) . trigger ( "error" ) ;
170170 await waitTicks ( 1 ) ;
171171
172172 expect ( component . emitted ( ) . error ) . toBeTruthy ( ) ;
@@ -182,7 +182,7 @@ describe("AdvancedVideo", () => {
182182 } ) ;
183183 await waitTicks ( 1 ) ;
184184
185- component . trigger ( "playing" ) ;
185+ component . find ( "video" ) . trigger ( "playing" ) ;
186186 await waitTicks ( 1 ) ;
187187
188188 expect ( component . emitted ( ) . playing ) . toBeTruthy ( ) ;
0 commit comments