From 7a9a0bbbbcd6cbe8e1a9d204044ec20a7290784b Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Thu, 26 Mar 2020 08:47:28 +0000 Subject: [PATCH] Fixed invalid circleci step --- .circleci/config.yml | 2 +- test-browser/commands/verifyContracts.js | 3 +-- test-browser/helpers/init.js | 6 +++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c9eaf400d0..8acdd8849e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: diff --git a/test-browser/commands/verifyContracts.js b/test-browser/commands/verifyContracts.js index 9fe65e3e67..932ebfce2c 100644 --- a/test-browser/commands/verifyContracts.js +++ b/test-browser/commands/verifyContracts.js @@ -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 () { diff --git a/test-browser/helpers/init.js b/test-browser/helpers/init.js index 535eaf4c3b..c7829c367a 100644 --- a/test-browser/helpers/init.js +++ b/test-browser/helpers/init.js @@ -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() })