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