From 008a81ee1486107e7c45bdb2fd8c571f8346f733 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 28 Sep 2022 21:39:23 +0200 Subject: [PATCH] add e2e --- apps/remix-ide-e2e/src/tests/remixd.test.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/remix-ide-e2e/src/tests/remixd.test.ts b/apps/remix-ide-e2e/src/tests/remixd.test.ts index 34c0d84d56..d6e9cb04cb 100644 --- a/apps/remix-ide-e2e/src/tests/remixd.test.ts +++ b/apps/remix-ide-e2e/src/tests/remixd.test.ts @@ -133,6 +133,18 @@ module.exports = { .expect.element('*[data-id="terminalJournal"]').text.to.contain('Unlock time should be in the future').before(60000) }, + 'Should load compilation result from hardhat when remixd connects #group6': function (browser: NightwatchBrowser) { + // artifacts/build-info/c7062fdd360381a85af23eeef31c98f8.json has already been created + browser + .expect.element('*[data-id="terminalJournal"]').text.to.contain('receiving compilation result from hardhat').before(60000) + + browser.clickLaunchIcon('udapp') + .assert.textContains('*[data-id="udappCompiledBy"]', 'Compiled by hardhat') + .selectContract('Lock') + .createContract('1') + .expect.element('*[data-id="terminalJournal"]').text.to.contain('Unlock time should be in the future').before(60000) + }, + 'Should listen on compilation result from foundry #group6': function (browser: NightwatchBrowser) { browser.perform((done) => { console.log('working directory', process.cwd())