pull/1855/head^2
yann300 3 years ago
parent efa1d7ae5c
commit dcf562a04e
  1. 17
      apps/remix-ide-e2e/src/tests/importFromGithub.test.ts

@ -34,9 +34,13 @@ module.exports = {
.clickLaunchIcon('settings')
.clickLaunchIcon('filePanel')
.scrollAndClick('*[data-id="landingPageImportFromGitHubButton"]')
.waitForElementVisible('*[data-id="homeTabModalDialogCustomPromptText"]')
.clearValue('*[data-id="homeTabModalDialogCustomPromptText"]')
.setValue('*[data-id="homeTabModalDialogCustomPromptText"]', testData.invalidURL)
.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)
.waitForElementVisible('*[data-id="homeTab-modal-footer-ok-react"]')
.scrollAndClick('[data-id="homeTab-modal-footer-ok-react"]') // submitted
.waitForElementVisible('*[data-shared="tooltipPopup"]')
@ -51,7 +55,12 @@ module.exports = {
.scrollAndClick('*[data-id="landingPageImportFromGitHubButton"]')
.waitForElementVisible('*[data-id="homeTabModalDialogCustomPromptText"]')
.clearValue('*[data-id="homeTabModalDialogCustomPromptText"]')
.setValue('*[data-id="homeTabModalDialogCustomPromptText"]', testData.validURL)
.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)
.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