pull/5370/head
yann300 3 years ago
parent 069ff364aa
commit d6bad4e7af
  1. 2
      apps/remix-ide-e2e/src/tests/plugin_api.ts
  2. 4
      apps/remix-ide-e2e/src/tests/terminal.test.ts

@ -358,7 +358,7 @@ module.exports = {
.scrollAndClick('[data-id="pluginManagerComponentActivateButtonhardhat-provider"]') .scrollAndClick('[data-id="pluginManagerComponentActivateButtonhardhat-provider"]')
.clickLaunchIcon('udapp') .clickLaunchIcon('udapp')
.click('*[data-id="Hardhat Provider"]') .click('*[data-id="Hardhat Provider"]')
.modalFooterOKClick('hardhat-provider') .modalFooterOKClick('hardhatprovider')
.waitForElementContainsText('*[data-id="settingsNetworkEnv"]', 'Custom') // e.g Custom (1337) network .waitForElementContainsText('*[data-id="settingsNetworkEnv"]', 'Custom') // e.g Custom (1337) network
.clickLaunchIcon('localPlugin') .clickLaunchIcon('localPlugin')
.useXpath() .useXpath()

@ -193,13 +193,13 @@ module.exports = {
.assert.visible('*[data-id="autoCompletePopUpAutoCompleteItem"]') .assert.visible('*[data-id="autoCompletePopUpAutoCompleteItem"]')
}, },
'Should run a script right after compilation #group5': function (browser: NightwatchBrowser) { 'Should run a script right after compilation #group6': function (browser: NightwatchBrowser) {
browser browser
.addFile('storage.sol', { content: scriptAutoExec.contract } ) .addFile('storage.sol', { content: scriptAutoExec.contract } )
.addFile('scripts/deploy_storage.js', { content: scriptAutoExec.script } ) .addFile('scripts/deploy_storage.js', { content: scriptAutoExec.script } )
.openFile('storage.sol') .openFile('storage.sol')
.sendKeys('body', [browser.Keys.CONTROL, 'e']) .sendKeys('body', [browser.Keys.CONTROL, 'e'])
.journalChildIncludes('147', { shouldHaveOnlyOneOccurence: true }) .journalLastChildIncludes('147')
} }
} }

Loading…
Cancel
Save