From d7c96ccd3ab23ab37ef7b0856dfcaa859ab7cb4f Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Wed, 13 Jan 2021 13:48:53 +0100 Subject: [PATCH] Fixed failing file-explorer tests. --- .env | 2 +- apps/remix-ide-e2e/src/tests/fileExplorer.test.ts | 6 +++--- apps/remix-ide-e2e/src/tests/remixd.test.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env b/.env index 21f7eea1af..ca991985f2 100644 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ -gist_token=51c492cff9ccd5b819b79ddf5ecd275c725d0d9e +gist_token=3a9d5658e470d2003691d0e75f792abfe72e308a account_passphrase=explain uniform adapt basic blue onion rebel pull rice erase volcano couple account_password=remix_is_cool NODE_OPTIONS=--max-old-space-size=2048 \ No newline at end of file diff --git a/apps/remix-ide-e2e/src/tests/fileExplorer.test.ts b/apps/remix-ide-e2e/src/tests/fileExplorer.test.ts index f2d252f358..209b102d3e 100644 --- a/apps/remix-ide-e2e/src/tests/fileExplorer.test.ts +++ b/apps/remix-ide-e2e/src/tests/fileExplorer.test.ts @@ -103,9 +103,9 @@ module.exports = { .setValue('*[data-id="fileExplorerFileUpload"]', testData.testFile1) .setValue('*[data-id="fileExplorerFileUpload"]', testData.testFile2) .setValue('*[data-id="fileExplorerFileUpload"]', testData.testFile3) - .waitForElementVisible('*[key="browser/editor.test.js"]') - .waitForElementVisible('*[key="browser/fileExplorer.test.js"]') - .waitForElementVisible('*[key="browser/generalSettings.test.js"]') + .waitForElementVisible('[data-id="treeViewLitreeViewItembrowser/editor.test.js"]') + .waitForElementVisible('[data-id="treeViewLitreeViewItembrowser/fileExplorer.test.js"]') + .waitForElementVisible('[data-id="treeViewLitreeViewItembrowser/generalSettings.test.js"]') .end() }, diff --git a/apps/remix-ide-e2e/src/tests/remixd.test.ts b/apps/remix-ide-e2e/src/tests/remixd.test.ts index c45c95a660..d82f8a3800 100644 --- a/apps/remix-ide-e2e/src/tests/remixd.test.ts +++ b/apps/remix-ide-e2e/src/tests/remixd.test.ts @@ -121,7 +121,7 @@ function runTests (browser: NightwatchBrowser) { .setEditorValue('contract test1 { function get () returns (uint) { return 10; }}') .click('[data-path="localhost/folder1/contract_' + browserName + '.sol"]') // rename a file and check .pause(1000) - .renameFile('localhost/folder1/contract_' + browserName + '.sol', 'renamed_contract_' + browserName + '.sol', 'localhost/folder1/renamed_contract_' + browserName + '.sol') + .renamePath('localhost/folder1/contract_' + browserName + '.sol', 'renamed_contract_' + browserName + '.sol', 'localhost/folder1/renamed_contract_' + browserName + '.sol') .pause(1000) .removeFile('localhost/folder1/contract_' + browserName + '_toremove.sol') .perform(function (done) {