@@ -116,7 +116,7 @@ function (): void {
116116 $ this ->dbQuery (
117117 'SELECT * FROM ` ' . $ this ->databaseName . '`.`test_table2`; ' ,
118118 function (): void {
119- self :: assertTrue ($ this ->isElementPresent ('className ' , 'table_results ' ));
119+ $ this -> scrollToElement ($ this ->waitForElement ('className ' , 'table_results ' ), 0 , 20 );
120120 // [ ] | Edit | Copy | Delete | 1 | 3
121121 self ::assertEquals ('3 ' , $ this ->getCellByTableClass ('table_results ' , 1 , 6 ));
122122 },
@@ -152,7 +152,7 @@ public function testEditTriggers(): void
152152 $ this ->dbQuery (
153153 'SELECT * FROM ` ' . $ this ->databaseName . '`.`test_table2`; ' ,
154154 function (): void {
155- self :: assertTrue ($ this ->isElementPresent ('className ' , 'table_results ' ));
155+ $ this -> scrollToElement ($ this ->waitForElement ('className ' , 'table_results ' ), 0 , 20 );
156156 // [ ] | Edit | Copy | Delete | 1 | 12
157157 self ::assertEquals ('12 ' , $ this ->getCellByTableClass ('table_results ' , 1 , 6 ));
158158 },
@@ -182,7 +182,7 @@ public function testDropTrigger(): void
182182 $ this ->dbQuery (
183183 'SELECT * FROM ` ' . $ this ->databaseName . '`.`test_table2`; ' ,
184184 function (): void {
185- self :: assertTrue ($ this ->isElementPresent ('className ' , 'table_results ' ));
185+ $ this -> scrollToElement ($ this ->waitForElement ('className ' , 'table_results ' ), 0 , 20 );
186186 // [ ] | Edit | Copy | Delete | 1 | 2
187187 self ::assertEquals ('2 ' , $ this ->getCellByTableClass ('table_results ' , 1 , 6 ));
188188 },
0 commit comments