From 0ae1bab2d09d5b3c769f38ca28c38943030ad18b Mon Sep 17 00:00:00 2001 From: "davidzagi93@gmail.com" Date: Sun, 5 Sep 2021 08:56:12 +0100 Subject: [PATCH] adding click event to solidity test --- apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts | 7 +------ apps/remix-ide-e2e/src/tests/workspace.test.ts | 2 -- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts b/apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts index c9899e7d17..a46781eaea 100644 --- a/apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts +++ b/apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts @@ -150,7 +150,7 @@ module.exports = { .clickLaunchIcon('solidityUnitTesting') .waitForElementPresent('*[data-id="uiPathInput"]', 3000) .clearValue('*[data-id="uiPathInput"]') - .setValue('*[data-id="uiPathInput"]', 'tests') + .setValue('*[data-id="uiPathInput"]', 'tests1') .click('*[data-id="testTabGenerateTestFolder"]') .clickLaunchIcon('filePanel') // creating a new workspace @@ -172,9 +172,6 @@ module.exports = { .clickLaunchIcon('filePanel') .click('*[data-id="treeViewLitreeViewItemcontracts"]') .openFile('contracts/3_Ballot.sol') - .scrollAndClick('[data-id="pluginManagerComponentDeactivateButtonsolidityUnitTesting"]') - .pause(2000) - .scrollAndClick('[data-id="pluginManagerComponentActivateButtonsolidityUnitTesting"]') .clickLaunchIcon('solidityUnitTesting') .pause(2000) .verify.attributeEquals('*[data-id="uiPathInput"]', 'value', 'tests') @@ -196,9 +193,7 @@ module.exports = { .pause(2000) .scrollAndClick('[data-id="pluginManagerComponentActivateButtonsolidityUnitTesting"]') .clickLaunchIcon('solidityUnitTesting') - .pause(5000) .scrollAndClick('#runTestsTabRunAction') - .pause(2000) .waitForElementVisible('*[data-id="testTabSolidityUnitTestsOutputheader"]', 120000) .waitForElementPresent('#solidityUnittestsOutput div[class^="testPass"]', 60000) .waitForElementContainsText('#solidityUnittestsOutput', '/tests/4_Ballot_test.sol', 60000) diff --git a/apps/remix-ide-e2e/src/tests/workspace.test.ts b/apps/remix-ide-e2e/src/tests/workspace.test.ts index f80143526e..f05be46c00 100644 --- a/apps/remix-ide-e2e/src/tests/workspace.test.ts +++ b/apps/remix-ide-e2e/src/tests/workspace.test.ts @@ -41,10 +41,8 @@ module.exports = { .pause(2000) .waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]') .addFile('test.sol', { content: 'test' }) - .pause(2000) .waitForElementVisible('*[data-id="treeViewLitreeViewItemtest.sol"]') .click('*[data-id="workspaceCreate"]') // create workspace_name_1 - .pause(2000) .waitForElementVisible('*[data-id="modalDialogCustomPromptTextCreate"]') // eslint-disable-next-line dot-notation .execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextCreate"]')['value'] = 'workspace_name_1' })