From 168cd815b44876f33eca2c9fb8fa2fbc6dafa292 Mon Sep 17 00:00:00 2001 From: "davidzagi93@gmail.com" Date: Mon, 6 Sep 2021 12:19:00 +0100 Subject: [PATCH] modification to workspace test and solidityUnitTests --- apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts | 2 +- apps/remix-ide-e2e/src/tests/workspace.test.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts b/apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts index 5b3236859c..f37d67844d 100644 --- a/apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts +++ b/apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts @@ -174,7 +174,7 @@ module.exports = { .openFile('contracts/3_Ballot.sol') .clickLaunchIcon('solidityUnitTesting') .pause(2000) - .verify.attributeEquals('*[data-id="uiPathInput"]', 'value', 'tests1') + .verify.attributeEquals('*[data-id="uiPathInput"]', 'value', 'tests') .pause(2000) .scrollAndClick('#runTestsTabRunAction') .waitForElementVisible('*[data-id="testTabSolidityUnitTestsOutputheader"]', 120000) diff --git a/apps/remix-ide-e2e/src/tests/workspace.test.ts b/apps/remix-ide-e2e/src/tests/workspace.test.ts index b306076763..f31c9b840a 100644 --- a/apps/remix-ide-e2e/src/tests/workspace.test.ts +++ b/apps/remix-ide-e2e/src/tests/workspace.test.ts @@ -37,6 +37,8 @@ module.exports = { .waitForElementVisible('*[data-id="modalDialogCustomPromptTextCreate"]') // eslint-disable-next-line dot-notation .execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextCreate"]')['value'] = 'workspace_name' }) + .pause(5000) + .waitForElementVisible('*[data-id="workspacesModalDialogModalDialogModalFooter-react"] .modal-ok') .click('*[data-id="workspacesModalDialogModalDialogModalFooter-react"] .modal-ok') .waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') .addFile('test.sol', { content: 'test' })