Skip to content

Commit 33a5c41

Browse files
yann300Aniket-Engg
authored andcommitted
Update url.test.ts
1 parent 44ed885 commit 33a5c41

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

apps/remix-ide-e2e/src/tests/url.test.ts

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -265,26 +265,26 @@ module.exports = {
265265
.expect.element('[data-id="contractGUIDeployWithProxy"]').to.be.selected
266266
},
267267

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+
},
288288

289289
'Should load using various URL compiler params #group2': function (browser: NightwatchBrowser) {
290290
browser
@@ -353,15 +353,15 @@ module.exports = {
353353
.openFile('contracts/governance/UnionGovernor.sol')
354354
},
355355

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+
},
365365

366366
'Import Github folder from URL params #group4': function (browser: NightwatchBrowser) {
367367
browser

0 commit comments

Comments
 (0)