Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Feb 13, 2025
1 parent 5906d4d commit 2c50a13
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions apps/remix-ide-e2e/src/tests/vm_state.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ const tests = {
.setValue('input[data-id="modalDialogForkState"]', 'forkedState_2')
.modalFooterOKClick('udappNotify')
// 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)
// check that the state is loaded
.clickFunction('retrieve - call')
Expand All @@ -118,7 +123,12 @@ const tests = {
})
// switch back to the previous state and check the value hasn't changed.
.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)
.clickFunction('retrieve - call')
.testFunction('last',
Expand Down

0 comments on commit 2c50a13

Please sign in to comment.