From 7a9ca4f684a151bc3151135e668fee9708a25970 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Thu, 5 May 2022 09:35:57 +0200 Subject: [PATCH] click --- .../src/tests/importFromGithub.test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/importFromGithub.test.ts b/apps/remix-ide-e2e/src/tests/importFromGithub.test.ts index 4bacebb4cd..fa5e22d3a1 100644 --- a/apps/remix-ide-e2e/src/tests/importFromGithub.test.ts +++ b/apps/remix-ide-e2e/src/tests/importFromGithub.test.ts @@ -21,7 +21,7 @@ module.exports = { .click('div[title="home"]') .waitForElementVisible('button[data-id="landingPageImportFromGitHubButton"]') .pause(1000) - .scrollAndClick('button[data-id="landingPageImportFromGitHubButton"]') + .click('button[data-id="landingPageImportFromGitHubButton"]') .waitForElementVisible('*[data-id="homeTabModalDialogModalTitle-react"]') .assert.containsText('*[data-id="homeTabModalDialogModalTitle-react"]', 'Import from Github') .waitForElementVisible('*[data-id="homeTabModalDialogModalBody-react"]') @@ -33,12 +33,12 @@ module.exports = { 'Display Error Message For Invalid GitHub URL Modal #group1 #flaky': function (browser: NightwatchBrowser) { browser .waitForElementVisible('*[data-id="remixIdeIconPanel"]', 10000) - .scrollAndClick('*[data-id="landingPageImportFromGitHubButton"]') + .click('*[data-id="landingPageImportFromGitHubButton"]') .waitForElementVisible('input[data-id="homeTabModalDialogCustomPromptText"]') .click('input[data-id="homeTabModalDialogCustomPromptText"]') .setValue('input[data-id="homeTabModalDialogCustomPromptText"]', testData.invalidURL) .waitForElementVisible('*[data-id="homeTab-modal-footer-ok-react"]') - .scrollAndClick('[data-id="homeTab-modal-footer-ok-react"]') // submitted + .click('[data-id="homeTab-modal-footer-ok-react"]') // submitted .waitForElementVisible('*[data-shared="tooltipPopup"]') .assert.containsText('*[data-shared="tooltipPopup"] span', 'not found ' + testData.invalidURL) }, @@ -46,13 +46,13 @@ module.exports = { 'Import From Github For Valid URL #group1': function (browser: NightwatchBrowser) { browser .waitForElementVisible('*[data-id="remixIdeIconPanel"]', 10000) - .scrollAndClick('*[data-id="landingPageImportFromGitHubButton"]') + .click('*[data-id="landingPageImportFromGitHubButton"]') .waitForElementVisible('input[data-id="homeTabModalDialogCustomPromptText"]') .click('input[data-id="homeTabModalDialogCustomPromptText"]') .clearValue('input[data-id="homeTabModalDialogCustomPromptText"]') .setValue('input[data-id="homeTabModalDialogCustomPromptText"]', testData.validURL) .waitForElementVisible('*[data-id="homeTab-modal-footer-ok-react"]') - .scrollAndClick('[data-id="homeTab-modal-footer-ok-react"]') + .click('[data-id="homeTab-modal-footer-ok-react"]') .openFile('github/OpenZeppelin/openzeppelin-solidity/contracts/access/Roles.sol') .waitForElementVisible("div[title='default_workspace/github/OpenZeppelin/openzeppelin-solidity/contracts/access/Roles.sol'") .getEditorValue((content) => { @@ -62,13 +62,13 @@ module.exports = { 'Import JSON From Github For Valid URL #group1': function (browser: NightwatchBrowser) { browser .click('div[title="home"]') - .scrollAndClick('*[data-id="landingPageImportFromGitHubButton"]') + .click('*[data-id="landingPageImportFromGitHubButton"]') .waitForElementVisible('input[data-id="homeTabModalDialogCustomPromptText"]') .click('input[data-id="homeTabModalDialogCustomPromptText"]') .clearValue('input[data-id="homeTabModalDialogCustomPromptText"]') .setValue('input[data-id="homeTabModalDialogCustomPromptText"]', testData.JSON) .waitForElementVisible('*[data-id="homeTab-modal-footer-ok-react"]') - .scrollAndClick('[data-id="homeTab-modal-footer-ok-react"]') + .click('[data-id="homeTab-modal-footer-ok-react"]') .openFile('github/ethereum/remix-project/package.json') .waitForElementVisible("div[title='default_workspace/github/ethereum/remix-project/package.json'") .getEditorValue((content) => {