@@ -127,7 +127,9 @@ suite(
127127 } ) ;
128128
129129 test ( 'Accept the project as a trusted one' , async function ( ) : Promise < void > {
130- await projectAndFileTests . performTrustAuthorDialog ( ) ;
130+ await projectAndFileTests . performTrustDialogs ( ) ;
131+ // it needs to wait here for the Trust dialogs to be closed and the Editor to be ready
132+ await driverHelper . wait ( 5000 ) ;
131133 } ) ;
132134
133135 test ( 'Check if the project files were imported' , async function ( ) : Promise < void > {
@@ -142,13 +144,14 @@ suite(
142144 await projectSection . openItem ( testRepoProjectName , fileToChange ) ;
143145 await driverHelper . waitVisibility ( webCheCodeLocators . Editor . inputArea ) ;
144146 await driverHelper . getDriver ( ) . findElement ( webCheCodeLocators . Editor . inputArea ) . click ( ) ;
147+ await driverHelper . wait ( 1000 ) ;
145148
146149 Logger . debug ( 'Clearing the editor with Ctrl+A' ) ;
147150 await driverHelper . getDriver ( ) . actions ( ) . keyDown ( Key . CONTROL ) . sendKeys ( 'a' ) . keyUp ( Key . CONTROL ) . perform ( ) ;
148- await driverHelper . wait ( 500 ) ;
151+ await driverHelper . wait ( 1000 ) ;
149152 Logger . debug ( 'Deleting selected text' ) ;
150153 await driverHelper . getDriver ( ) . actions ( ) . sendKeys ( Key . DELETE ) . perform ( ) ;
151- await driverHelper . wait ( 500 ) ;
154+ await driverHelper . wait ( 1000 ) ;
152155 Logger . debug ( `Entering text: "${ changesToCommit } "` ) ;
153156 await driverHelper . getDriver ( ) . actions ( ) . sendKeys ( changesToCommit ) . perform ( ) ;
154157 } ) ;
0 commit comments