pull/668/head
ioedeveloper 4 years ago
parent f3910c5d89
commit c4052f02fe
  1. 2
      apps/remix-ide-e2e/src/commands/getModalBody.ts
  2. 4
      apps/remix-ide-e2e/src/tests/publishContract.test.ts

@ -4,7 +4,7 @@ import EventEmitter from "events"
class GetModalBody extends EventEmitter {
command (this: NightwatchBrowser, callback: (value: string, cb: VoidFunction) => void) {
this.api.waitForElementPresent('.modal-body')
.getText('.modal-body', (result) => {
.getText('#modal-dialog', (result) => {
console.log(result)
const value = typeof result.value === 'string' ? result.value : null

@ -20,7 +20,7 @@ module.exports = {
.openFile('browser/contracts/3_Ballot.sol')
.verifyContracts(['Ballot'])
.click('#publishOnIpfs')
.waitForElementVisible('*[data-id="modalDialogContainer"]')
.pause(10000)
.getModalBody((value, done) => {
if (value.indexOf('Metadata of "ballot" was published successfully.') === -1) browser.assert.fail('ipfs deploy failed', '', '')
if (value.indexOf('dweb:/ipfs') === -1) browser.assert.fail('ipfs deploy failed', '', '')
@ -32,7 +32,7 @@ module.exports = {
'Publish on Swarm': '' + function (browser: NightwatchBrowser) {
browser
.click('#publishOnSwarm')
.waitForElementVisible('*[data-id="modalDialogContainer"]')
.pause(10000)
.getModalBody((value, done) => {
if (value.indexOf('Metadata of "ballot" was successfully.') === -1) browser.assert.fail('swarm deploy failed', '', '')
if (value.indexOf('bzz') === -1) browser.assert.fail('swarm deploy failed', '', '')

Loading…
Cancel
Save