Fixed invalid circleci step

pull/5370/head
ioedeveloper 5 years ago committed by LianaHus
parent a27b099b1b
commit 7a9a0bbbbc
  1. 2
      .circleci/config.yml
  2. 3
      test-browser/commands/verifyContracts.js
  3. 6
      test-browser/helpers/init.js

@ -43,7 +43,7 @@ jobs:
if [ "${CIRCLE_BRANCH}" == "remix_live" ]; then
./ci/deploy_from_travis_remix-live.sh;
fi
- store_artifact:
- store_artifacts:
path: ./test-browser/screenshots
workflows:

@ -1,7 +1,7 @@
const EventEmitter = require('events')
class VerifyContracts extends EventEmitter {
command (compiledContractNames, opts = { wait: 15000 }) {
command (compiledContractNames, opts = { wait: 5000 }) {
this.api.perform((done) => {
verifyContracts(this.api, compiledContractNames, opts, () => {
done()
@ -16,7 +16,6 @@ function getCompiledContracts (browser, opts, callback) {
browser
.clickLaunchIcon('solidity')
.pause(opts.wait)
.saveScreenshot(`test-browser/screenshots/screenshot_${new Date().valueOf()}.png`)
.scrollInto('*[data-id="compiledContracts"] option:first-child')
.waitForElementPresent('*[data-id="compiledContracts"] option')
.execute(function () {

@ -7,7 +7,11 @@ module.exports = function (browser, callback, url, preloadPlugins = true) {
browser.resizeWindow(2560, 1440, () => {
if (preloadPlugins) {
initModules(browser, () => {
browser.clickLaunchIcon('solidity').click('#autoCompile')
browser.clickLaunchIcon('solidity')
.pause(2000)
.execute(() => {
document.getElementById('autoCompile').click()
})
.perform(function () {
callback()
})

Loading…
Cancel
Save