pull/4924/head
Your Name 5 months ago
parent a898dd8e76
commit d6be4bf53f
  1. 2
      .circleci/config.yml
  2. 33
      apps/remix-ide-e2e/src/tests/remixd.test.ts

@ -3,7 +3,7 @@ version: 2.1
parameters: parameters:
run_flaky_tests: run_flaky_tests:
type: boolean type: boolean
default: false default: true
orbs: orbs:
browser-tools: circleci/browser-tools@1.4.4 browser-tools: circleci/browser-tools@1.4.4
win: circleci/windows@5.0 win: circleci/windows@5.0

@ -243,7 +243,14 @@ module.exports = {
done() done()
}) })
}) })
} },
'Should install slither #group10 #flaky': function (browser: NightwatchBrowser) {
browser.perform(async (done) => {
await installSlither()
done()
})
},
} }
function runTests(browser: NightwatchBrowser, done: any) { function runTests(browser: NightwatchBrowser, done: any) {
@ -477,3 +484,27 @@ async function buildFoundryProject(): Promise<void> {
console.log(e) console.log(e)
} }
} }
async function installSlither(): Promise<void> {
console.log('installSlither', process.cwd())
try {
const server = spawn('node', ['./dist/libs/remixd/src/scripts/installSlither.js'], { cwd: process.cwd(), shell: true, detached: true })
return new Promise((resolve, reject) => {
server.stdout.on('data', function (data) {
console.log(data.toString())
if (
data.toString().includes("Slither is ready to use")
) {
console.log('resolving')
resolve()
}
})
server.stderr.on('err', function (data) {
console.log(data.toString())
reject(data.toString())
})
})
} catch (e) {
console.log(e)
}
}

Loading…
Cancel
Save