From f2f0b733638dc919504d148b36a5925f656ea146 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Mon, 19 Sep 2022 10:42:54 +0200 Subject: [PATCH] assert differently --- apps/remix-ide-e2e/src/tests/url.test.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/url.test.ts b/apps/remix-ide-e2e/src/tests/url.test.ts index 155b2ba22c..e0e0c20aec 100644 --- a/apps/remix-ide-e2e/src/tests/url.test.ts +++ b/apps/remix-ide-e2e/src/tests/url.test.ts @@ -123,8 +123,9 @@ module.exports = { browser .url('http://127.0.0.1:8080/#optimize=true&runs=300&evmVersion=istanbul&version=soljson-v0.7.4+commit.3f05b770.js&url=https://github.com/ethereum/remix-project/blob/master/apps/remix-ide/contracts/app/solidity/mode.sol&code=cHJhZ21hIHNvbGlkaXR5ID49MC42LjAgPDAuNy4wOwoKaW1wb3J0ICJodHRwczovL2dpdGh1Yi5jb20vT3BlblplcHBlbGluL29wZW56ZXBwZWxpbi1jb250cmFjdHMvYmxvYi9tYXN0ZXIvY29udHJhY3RzL2FjY2Vzcy9Pd25hYmxlLnNvbCI7Cgpjb250cmFjdCBHZXRQYWlkIGlzIE93bmFibGUgewogIGZ1bmN0aW9uIHdpdGhkcmF3KCkgZXh0ZXJuYWwgb25seU93bmVyIHsKICB9Cn0') .refresh() // we do one reload for making sure we already have the default workspace - .saveScreenshot('./reports/screenshots/should-load-the-code-from-url-code-params.png') + .waitForElementVisible('[data-id="compilerContainerCompileBtn"]') + .saveScreenshot('./reports/screenshots/should-load-the-code-from-url-code-params.png') .clickLaunchIcon('filePanel') .waitForElementVisible({ selector: `//li[@data-id="treeViewLitreeViewItemethereum/remix-project/apps/remix-ide/contracts/app/solidity/mode.sol"]`, @@ -136,15 +137,6 @@ module.exports = { 'proposals.length = _numProposals;') !== -1, 'code has been loaded') }) - .openFile('contract-76747f6e19.sol') - .openFile('ethereum') - .openFile('ethereum/remix-project') - .openFile('ethereum/remix-project/apps') - .openFile('ethereum/remix-project/apps/remix-ide') - .openFile('ethereum/remix-project/apps/remix-ide/contracts') - .openFile('ethereum/remix-project/apps/remix-ide/contracts/app') - .openFile('ethereum/remix-project/apps/remix-ide/contracts/app/solidity') - .openFile('ethereum/remix-project/apps/remix-ide/contracts/app/solidity/mode.sol') }, 'Should load the code from language & code params #group1': function (browser: NightwatchBrowser) {