pull/5772/head
yann300 2 weeks ago
parent e09d4d5c04
commit 0777156cce
  1. 14
      apps/remix-ide-e2e/src/tests/vm_state.test.ts

@ -96,7 +96,12 @@ const tests = {
.setValue('input[data-id="modalDialogForkState"]', 'forkedState_2') .setValue('input[data-id="modalDialogForkState"]', 'forkedState_2')
.modalFooterOKClick('udappNotify') .modalFooterOKClick('udappNotify')
// load the previous contract // load the previous contract
.addAtAddressInstance(contractAddress, false, false, false) .clickLaunchIcon('filePanel')
.openFile('contracts/1_Storage.sol')
.perform((done) => {
browser.addAtAddressInstance(contractAddress, false, false, false)
.perform(() => done())
})
.clickInstance(0) .clickInstance(0)
// check that the state is loaded // check that the state is loaded
.clickFunction('retrieve - call') .clickFunction('retrieve - call')
@ -118,7 +123,12 @@ const tests = {
}) })
// switch back to the previous state and check the value hasn't changed. // switch back to the previous state and check the value hasn't changed.
.switchWorkspace('forkedState_1') .switchWorkspace('forkedState_1')
.addAtAddressInstance(contractAddress, false, false, false) .clickLaunchIcon('filePanel')
.openFile('contracts/1_Storage.sol')
.perform((done) => {
browser.addAtAddressInstance(contractAddress, false, false, false)
.perform(() => done())
})
.clickInstance(0) .clickInstance(0)
.clickFunction('retrieve - call') .clickFunction('retrieve - call')
.testFunction('last', .testFunction('last',

Loading…
Cancel
Save