pull/2813/head
yann300 2 years ago committed by Aniket
parent 423014afc4
commit 3b4d420d9f
  1. 7
      apps/remix-ide-e2e/src/tests/erc721.test.ts

@ -13,7 +13,8 @@ module.exports = {
return sources return sources
}, },
'Deploy SampleERC721 whose bytecode is very similar to ERC721': function (browser: NightwatchBrowser) { 'Deploy SampleERC721 whose bytecode is very similar to ERC721': function (browser: NightwatchBrowser) {
browser.click('*[data-id="workspaceCreate"]') browser.clickLaunchIcon('filePanel')
.click('*[data-id="workspaceCreate"]')
// create contract // create contract
.waitForElementVisible('*[data-id="modalDialogCustomPromptTextCreate"]') .waitForElementVisible('*[data-id="modalDialogCustomPromptTextCreate"]')
.waitForElementVisible('[data-id="fileSystemModalDialogModalFooter-react"] > button') .waitForElementVisible('[data-id="fileSystemModalDialogModalFooter-react"] > button')
@ -26,10 +27,12 @@ module.exports = {
.pause(100) .pause(100)
.waitForElementVisible('*[data-id="treeViewLitreeViewItemcontracts"]') .waitForElementVisible('*[data-id="treeViewLitreeViewItemcontracts"]')
.waitForElementVisible('*[data-id="treeViewLitreeViewItemcontracts/SampleERC721.sol"]') .waitForElementVisible('*[data-id="treeViewLitreeViewItemcontracts/SampleERC721.sol"]')
.openFile('contracts/SampleERC721.sol')
.verifyContracts(['SampleERC721'])
// deploy contract // deploy contract
.clickLaunchIcon('udapp') .clickLaunchIcon('udapp')
.selectContract('SampleERC721') .selectContract('SampleERC721')
.createContract('E, E') .createContract('E,E')
.testFunction('last', .testFunction('last',
{ {
status: 'true Transaction mined and execution succeed', status: 'true Transaction mined and execution succeed',

Loading…
Cancel
Save