change tests

pull/5370/head
filip mertens 1 year ago committed by bunsenstraat
parent e25bd1f766
commit fbc69a91d0
  1. 14
      apps/remix-ide-e2e/src/tests/proxy_oz_v4.test.ts
  2. 14
      apps/remix-ide-e2e/src/tests/proxy_oz_v5.test.ts

@ -243,13 +243,25 @@ module.exports = {
'Should interact with upgraded contract through provided proxy address #group1': function (browser: NightwatchBrowser) { 'Should interact with upgraded contract through provided proxy address #group1': function (browser: NightwatchBrowser) {
browser browser
.clearConsole()
.clickInstance(1) .clickInstance(1)
.perform((done) => { .perform((done) => {
browser.testConstantFunction(firstProxyAddress, 'version - call', null, '0:\nstring: MyTokenV2!').perform(() => { browser.testConstantFunction(firstProxyAddress, 'version - call', null, '0:\nstring: MyTokenV2!').perform(() => {
done() done()
}) })
}) })
.end() },
'Should debug the call': function(browser: NightwatchBrowser) {
browser
.debugTransaction(0)
.waitForElementVisible({
locateStrategy: 'xpath',
selector: '//*[@data-id="treeViewLivm trace step" and contains(.,"11")]',
timeout: 60000
})
.goToVMTraceStep(146)
.waitForElementContainsText('*[data-id="functionPanel"]', 'version()', 60000)
.end()
} }
} }

@ -243,13 +243,25 @@ module.exports = {
'Should interact with upgraded contract through provided proxy address #group1': function (browser: NightwatchBrowser) { 'Should interact with upgraded contract through provided proxy address #group1': function (browser: NightwatchBrowser) {
browser browser
.clearConsole()
.clickInstance(1) .clickInstance(1)
.perform((done) => { .perform((done) => {
browser.testConstantFunction(firstProxyAddress, 'version - call', null, '0:\nstring: MyTokenV2!').perform(() => { browser.testConstantFunction(firstProxyAddress, 'version - call', null, '0:\nstring: MyTokenV2!').perform(() => {
done() done()
}) })
}) })
.end() },
'Should debug the call': function(browser: NightwatchBrowser) {
browser
.debugTransaction(0)
.waitForElementVisible({
locateStrategy: 'xpath',
selector: '//*[@data-id="treeViewLivm trace step" and contains(.,"7")]',
timeout: 60000
})
.goToVMTraceStep(129)
.waitForElementContainsText('*[data-id="functionPanel"]', 'version()', 60000)
.end()
} }
} }
Loading…
Cancel
Save