@@ -265,26 +265,26 @@ module.exports = {
265
265
. expect . element ( '[data-id="contractGUIDeployWithProxy"]' ) . to . be . selected
266
266
} ,
267
267
268
- // 'Should select upgrade with proxy option from URL params #group2': function (browser: NightwatchBrowser) {
269
- // browser
270
- // .url('http://127.0.0.1:8080/#optimize=false&runs=200&upgradeProxy=true')
271
- // .refreshPage()
272
- // .waitForElementVisible('*[data-id="treeViewLitreeViewItemmyTokenV1.sol"]', 60000)
273
- // .openFile('myTokenV1.sol')
274
- // .waitForElementVisible({
275
- // locateStrategy: 'xpath',
276
- // selector: "//*[contains(@class, 'view-lines') and contains(.,'ERC721Upgradeable')]"
277
- // })
278
- // .clickLaunchIcon('solidity')
279
- // .waitForElementVisible('[data-id="compilerContainerCompileBtn"]')
280
- // .click('[data-id="compilerContainerCompileBtn"]')
281
- // .waitForElementPresent('select[id="compiledContracts"] option[value=MyToken]', 60000)
282
- // .clickLaunchIcon('udapp')
283
- // .click('select.udapp_contractNames')
284
- // .click('select.udapp_contractNames option[value=MyToken]')
285
- // .waitForElementPresent('[data-id="contractGUIUpgradeImplementationLabel"]')
286
- // .expect.element('[data-id="contractGUIUpgradeImplementation"]').to.be.selected
287
- // },
268
+ 'Should select upgrade with proxy option from URL params #group2' : function ( browser : NightwatchBrowser ) {
269
+ browser
270
+ . url ( 'http://127.0.0.1:8080/#optimize=false&runs=200&upgradeProxy=true' )
271
+ . refreshPage ( )
272
+ . waitForElementVisible ( '*[data-id="treeViewLitreeViewItemmyTokenV1.sol"]' , 60000 )
273
+ . openFile ( 'myTokenV1.sol' )
274
+ . waitForElementVisible ( {
275
+ locateStrategy : 'xpath' ,
276
+ selector : "//*[contains(@class, 'view-lines') and contains(.,'ERC721Upgradeable')]"
277
+ } )
278
+ . clickLaunchIcon ( 'solidity' )
279
+ . waitForElementVisible ( '[data-id="compilerContainerCompileBtn"]' )
280
+ . click ( '[data-id="compilerContainerCompileBtn"]' )
281
+ . waitForElementPresent ( 'select[id="compiledContracts"] option[value=MyToken]' , 60000 )
282
+ . clickLaunchIcon ( 'udapp' )
283
+ . click ( 'select.udapp_contractNames' )
284
+ . click ( 'select.udapp_contractNames option[value=MyToken]' )
285
+ . waitForElementPresent ( '[data-id="contractGUIUpgradeImplementationLabel"]' )
286
+ . expect . element ( '[data-id="contractGUIUpgradeImplementation"]' ) . to . be . selected
287
+ } ,
288
288
289
289
'Should load using various URL compiler params #group2' : function ( browser : NightwatchBrowser ) {
290
290
browser
@@ -353,15 +353,15 @@ module.exports = {
353
353
. openFile ( 'contracts/governance/UnionGovernor.sol' )
354
354
} ,
355
355
356
- // 'Should execute function call from URL parameters #group3': function (browser: NightwatchBrowser) {
357
- // browser
358
- // .switchWorkspace('default_workspace')
359
- // .url('http://127.0.0.1:8080?calls=fileManager//open//contracts/3_Ballot.sol///terminal//log//log')
360
- // .refreshPage()
361
- // .waitForElementVisible('*[data-shared="tooltipPopup"]')
362
- // .waitForElementContainsText('*[data-shared="tooltipPopup"]', 'initiating fileManager and calling "open" ...')
363
- // .waitForElementContainsText('*[data-shared="tooltipPopup"]', 'initiating terminal and calling "log" ...')
364
- // },
356
+ 'Should execute function call from URL parameters #group3' : function ( browser : NightwatchBrowser ) {
357
+ browser
358
+ . switchWorkspace ( 'default_workspace' )
359
+ . url ( 'http://127.0.0.1:8080?calls=fileManager//open//contracts/3_Ballot.sol///terminal//log//log' )
360
+ . refreshPage ( )
361
+ . waitForElementVisible ( '*[data-shared="tooltipPopup"]' )
362
+ . waitForElementContainsText ( '*[data-shared="tooltipPopup"]' , 'initiating fileManager and calling "open" ...' )
363
+ . waitForElementContainsText ( '*[data-shared="tooltipPopup"]' , 'initiating terminal and calling "log" ...' )
364
+ } ,
365
365
366
366
'Import Github folder from URL params #group4' : function ( browser : NightwatchBrowser ) {
367
367
browser
0 commit comments