From e6f1e42dded7b9d715e3d1055195702b754ac9f7 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 22 Dec 2021 14:16:02 +0100 Subject: [PATCH] fix E2E --- apps/remix-ide-e2e/src/tests/importFromGithub.test.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/importFromGithub.test.ts b/apps/remix-ide-e2e/src/tests/importFromGithub.test.ts index 3fc73c2430..036d9ceae9 100644 --- a/apps/remix-ide-e2e/src/tests/importFromGithub.test.ts +++ b/apps/remix-ide-e2e/src/tests/importFromGithub.test.ts @@ -36,11 +36,9 @@ module.exports = { .scrollAndClick('*[data-id="landingPageImportFromGitHubButton"]') .waitForElementVisible('input[data-id="homeTabModalDialogCustomPromptText"]') .execute(() => { - // browser.setValue(query, content) is not working in this context for chrome. - // so we focus on it and use browser.keys() (document.querySelector('input[data-id="homeTabModalDialogCustomPromptText"]') as any).focus() }, [], () => {}) - .keys(testData.invalidURL) + .setValue('input[data-id="homeTabModalDialogCustomPromptText"]', testData.invalidURL) .waitForElementVisible('*[data-id="homeTab-modal-footer-ok-react"]') .scrollAndClick('[data-id="homeTab-modal-footer-ok-react"]') // submitted .waitForElementVisible('*[data-shared="tooltipPopup"]') @@ -56,11 +54,9 @@ module.exports = { .waitForElementVisible('*[data-id="homeTabModalDialogCustomPromptText"]') .clearValue('*[data-id="homeTabModalDialogCustomPromptText"]') .execute(() => { - // browser.setValue(query, content) is not working in this context for chrome. - // so we focus on it and use browser.keys() (document.querySelector('input[data-id="homeTabModalDialogCustomPromptText"]') as any).focus() }, [], () => {}) - .keys(testData.validURL) + .setValue('input[data-id="homeTabModalDialogCustomPromptText"]', testData.validURL) .waitForElementVisible('*[data-id="homeTab-modal-footer-ok-react"]') .scrollAndClick('[data-id="homeTab-modal-footer-ok-react"]') .openFile('github/OpenZeppelin/openzeppelin-solidity/contracts/access/Roles.sol')