pull/1855/head^2
yann300 3 years ago
parent d5b5c7e587
commit 7f19abd4b5
  1. 8
      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')

Loading…
Cancel
Save