@@ -63,6 +63,7 @@ const clickButton = async (browser: NightwatchBrowser, buttonText: string, waitR
63
63
return new Promise ( ( resolve ) => {
64
64
browser
65
65
. scrollInto ( `[data-id='${ buttonText } ']` )
66
+ . pause ( 1000 )
66
67
. useXpath ( )
67
68
. waitForElementVisible ( `//*[@data-id='${ buttonText } ']` ) . pause ( 100 )
68
69
. click ( `//*[@data-id='${ buttonText } ']` , async ( ) => {
@@ -168,7 +169,7 @@ module.exports = {
168
169
} )
169
170
} ,
170
171
171
- 'Should connect a local plugin #pr ' : function ( browser : NightwatchBrowser ) {
172
+ 'Should connect a local plugin ' : function ( browser : NightwatchBrowser ) {
172
173
browser . addLocalPlugin ( localPluginData , true )
173
174
// @ts -ignore
174
175
. frame ( 0 ) . useXpath ( )
@@ -263,37 +264,37 @@ module.exports = {
263
264
await clickAndCheckLog ( browser , 'fileManager-closeAllFiles' , null , { event : 'noFileSelected' , args : [ ] } , null )
264
265
} ,
265
266
266
- 'Should switch to file #group2 #pr ' : async function ( browser : NightwatchBrowser ) {
267
+ 'Should switch to file #group2' : async function ( browser : NightwatchBrowser ) {
267
268
await clickAndCheckLog ( browser , 'fileManager-switchFile' , null , { event : 'currentFileChanged' , args : [ 'contracts/1_Storage.sol' ] } , 'contracts/1_Storage.sol' )
268
269
await clickAndCheckLog ( browser , 'fileManager-getCurrentFile' , 'contracts/1_Storage.sol' , null , null )
269
270
await clickAndCheckLog ( browser , 'fileManager-switchFile' , null , { event : 'currentFileChanged' , args : [ 'README.txt' ] } , 'README.txt' )
270
271
await clickAndCheckLog ( browser , 'fileManager-getCurrentFile' , 'README.txt' , null , null )
271
272
} ,
272
- 'Should write to file #group2 #pr ' : async function ( browser : NightwatchBrowser ) {
273
+ 'Should write to file #group2' : async function ( browser : NightwatchBrowser ) {
273
274
await clickAndCheckLog ( browser , 'fileManager-writeFile' , null , { event : 'fileSaved' , args : [ 'README.txt' ] } , [ 'README.txt' , 'test' ] )
274
275
browser . pause ( 4000 , async ( ) => {
275
276
await clickAndCheckLog ( browser , 'fileManager-getFile' , 'test' , null , 'README.txt' )
276
277
} )
277
278
} ,
278
- 'Should set file #group2 #pr ' : async function ( browser : NightwatchBrowser ) {
279
+ 'Should set file #group2' : async function ( browser : NightwatchBrowser ) {
279
280
await clickAndCheckLog ( browser , 'fileManager-setFile' , null , { event : 'fileAdded' , args : [ 'new.sol' ] } , [ 'new.sol' , 'test' ] )
280
281
await clickAndCheckLog ( browser , 'fileManager-readFile' , 'test' , null , 'new.sol' )
281
282
} ,
282
- 'Should write to new file #group2 #pr ' : async function ( browser : NightwatchBrowser ) {
283
+ 'Should write to new file #group2' : async function ( browser : NightwatchBrowser ) {
283
284
await clickAndCheckLog ( browser , 'fileManager-writeFile' , null , { event : 'fileAdded' , args : [ 'testing.txt' ] } , [ 'testing.txt' , 'test' ] )
284
285
await clickAndCheckLog ( browser , 'fileManager-readFile' , 'test' , null , 'testing.txt' )
285
286
} ,
286
- 'Should rename file #group2 #pr ' : async function ( browser : NightwatchBrowser ) {
287
+ 'Should rename file #group2' : async function ( browser : NightwatchBrowser ) {
287
288
await clickAndCheckLog ( browser , 'fileManager-rename' , null , null , [ 'testing.txt' , 'testrename.txt' ] )
288
289
await clickAndCheckLog ( browser , 'fileManager-readFile' , 'test' , null , 'testrename.txt' )
289
290
} ,
290
291
291
- 'Should create empty workspace #group2 #pr ' : async function ( browser : NightwatchBrowser ) {
292
+ 'Should create empty workspace #group2' : async function ( browser : NightwatchBrowser ) {
292
293
await clickAndCheckLog ( browser , 'filePanel-createWorkspace' , null , null , [ 'emptyworkspace' , true ] )
293
294
await clickAndCheckLog ( browser , 'filePanel-getCurrentWorkspace' , { name : 'emptyworkspace' , isLocalhost : false , absolutePath : '.workspaces/emptyworkspace' } , null , null )
294
295
await clickAndCheckLog ( browser , 'fileManager-readdir' , { } , null , '/' )
295
296
} ,
296
- 'Should create workspace #group2 #pr ' : async function ( browser : NightwatchBrowser ) {
297
+ 'Should create workspace #group2' : async function ( browser : NightwatchBrowser ) {
297
298
await clickAndCheckLog ( browser , 'filePanel-createWorkspace' , null , null , 'testspace' )
298
299
await clickAndCheckLog ( browser , 'filePanel-getCurrentWorkspace' , { name : 'testspace' , isLocalhost : false , absolutePath : '.workspaces/testspace' } , null , null )
299
300
await clickAndCheckLog ( browser , 'fileManager-readdir' , {
@@ -305,24 +306,24 @@ module.exports = {
305
306
"remix.config.json" : { "isDirectory" : false } ,
306
307
} , null , '/' )
307
308
} ,
308
- 'Should get all workspaces #group2 #pr ' : async function ( browser : NightwatchBrowser ) {
309
+ 'Should get all workspaces #group2' : async function ( browser : NightwatchBrowser ) {
309
310
await clickAndCheckLog ( browser , 'topbar-getWorkspaces' , [ { name :"default_workspace" , isGitRepo :false , hasGitSubmodules :false , isGist :null } , { name :"emptyworkspace" , isGitRepo :false , hasGitSubmodules :false , isGist :null } , { name :"testspace" , isGitRepo :false , hasGitSubmodules :false , isGist :null } ] , null , null )
310
311
} ,
311
- 'Should have set workspace event #group2 #pr ' : async function ( browser : NightwatchBrowser ) {
312
+ 'Should have set workspace event #group2' : async function ( browser : NightwatchBrowser ) {
312
313
await clickAndCheckLog ( browser , 'filePanel-createWorkspace' , null , { event : 'setWorkspace' , args : [ { name : 'newspace' , isLocalhost : false } ] } , 'newspace' )
313
314
} ,
314
- 'Should have event when switching workspace #group2 #pr ' : async function ( browser : NightwatchBrowser ) {
315
+ 'Should have event when switching workspace #group2' : async function ( browser : NightwatchBrowser ) {
315
316
// @ts -ignore
316
317
browser . frameParent ( ) . useCss ( ) . clickLaunchIcon ( 'filePanel' ) . switchWorkspace ( 'default_workspace' ) . useXpath ( ) . click ( '//*[@data-id="verticalIconsKindlocalPlugin"]' ) . frame ( 0 , async ( ) => {
317
318
await clickAndCheckLog ( browser , null , null , { event : 'setWorkspace' , args : [ { name : 'default_workspace' , isLocalhost : false } ] } , null )
318
319
} )
319
320
} ,
320
321
321
- 'Should rename workspace #group2 #pr ' : async function ( browser : NightwatchBrowser ) {
322
+ 'Should rename workspace #group2' : async function ( browser : NightwatchBrowser ) {
322
323
await clickAndCheckLog ( browser , 'filePanel-renameWorkspace' , null , null , [ 'default_workspace' , 'renamed' ] )
323
324
await clickAndCheckLog ( browser , 'topbar-getWorkspaces' , [ { name :"emptyworkspace" , isGitRepo :false , hasGitSubmodules :false , isGist :null } , { name :"testspace" , isGitRepo :false , hasGitSubmodules :false , isGist :null } , { name :"newspace" , isGitRepo :false , hasGitSubmodules :false , isGist :null } , { name :"renamed" , isGitRepo :false , hasGitSubmodules :false , isGist :null } ] , null , null )
324
325
} ,
325
- 'Should delete workspace #group2 #pr ' : async function ( browser : NightwatchBrowser ) {
326
+ 'Should delete workspace #group2' : async function ( browser : NightwatchBrowser ) {
326
327
await clickAndCheckLog ( browser , 'filePanel-deleteWorkspace' , null , null , [ 'testspace' ] )
327
328
await clickAndCheckLog ( browser , 'topbar-getWorkspaces' , [ { name :"emptyworkspace" , isGitRepo :false , hasGitSubmodules :false , isGist :null } , { name :"newspace" , isGitRepo :false , hasGitSubmodules :false , isGist :null } , { name :"renamed" , isGitRepo :false , hasGitSubmodules :false , isGist :null } ] , null , null )
328
329
} ,
0 commit comments