cleaned up code changes

pull/5370/head
LianaHus 5 years ago
parent 7a9a0bbbbc
commit 8440b71aeb
  1. 2
      .circleci/config.yml
  2. 5
      test-browser/commands/verifyContracts.js

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

@ -1,7 +1,7 @@
const EventEmitter = require('events')
class VerifyContracts extends EventEmitter {
command (compiledContractNames, opts = { wait: 5000 }) {
command (compiledContractNames, opts = { wait: 1000 }) {
this.api.perform((done) => {
verifyContracts(this.api, compiledContractNames, opts, () => {
done()
@ -16,10 +16,9 @@ function getCompiledContracts (browser, opts, callback) {
browser
.clickLaunchIcon('solidity')
.pause(opts.wait)
.scrollInto('*[data-id="compiledContracts"] option:first-child')
.waitForElementPresent('*[data-id="compiledContracts"] option')
.execute(function () {
var contracts = document.querySelectorAll('#compileTabView select#compiledContracts option')
var contracts = document.querySelectorAll('*[data-id="compiledContracts"] option')
if (!contracts) {
return null
} else {

Loading…
Cancel
Save