Fixed invalid circleci step

pull/1/head
ioedeveloper 5 years ago committed by LianaHus
parent ce5ce8c7af
commit 2a834e3ef2
  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 if [ "${CIRCLE_BRANCH}" == "remix_live" ]; then
./ci/deploy_from_travis_remix-live.sh; ./ci/deploy_from_travis_remix-live.sh;
fi fi
- store_artifact: - store_artifacts:
path: ./test-browser/screenshots path: ./test-browser/screenshots
workflows: workflows:

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

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

Loading…
Cancel
Save