|
|
@ -27,17 +27,17 @@ module.exports = { |
|
|
|
.refresh() |
|
|
|
.refresh() |
|
|
|
.pause(10000) |
|
|
|
.pause(10000) |
|
|
|
.waitForElementVisible('*[data-id="remixIdeIconPanel"]', 10000) |
|
|
|
.waitForElementVisible('*[data-id="remixIdeIconPanel"]', 10000) |
|
|
|
.clickLaunchIcon('fileExplorers') |
|
|
|
|
|
|
|
.click('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
.click('[data-id="fileExplorerNewFilecreateNewFolder"]') |
|
|
|
.pause(1000) |
|
|
|
.pause(1000) |
|
|
|
.keys('Browser_Tests') |
|
|
|
.keys('Browser_Tests') |
|
|
|
.keys(browser.Keys.ENTER) |
|
|
|
.keys(browser.Keys.ENTER) |
|
|
|
.waitForElementVisible('*[data-id="treeViewLibrowser/Browser_Tests"]') |
|
|
|
.waitForElementVisible('*[data-id="treeViewLitreeViewItembrowser/Browser_Tests"]') |
|
|
|
.addFile('File.sol', { content: '' }) |
|
|
|
.addFile('File.sol', { content: '' }, false) |
|
|
|
.click('*[data-id="fileExplorerNewFilepublishToGist"]') |
|
|
|
.click('*[data-id="fileExplorerNewFilepublishToGist"]') |
|
|
|
.waitForElementVisible('*[data-id="modalDialogContainer-react"]') |
|
|
|
.waitForElementVisible('*[data-id="modalDialogContainer-react"]') |
|
|
|
.pause(2000) |
|
|
|
.pause(2000) |
|
|
|
.click('.modal-ok') |
|
|
|
.click('.modal-ok') |
|
|
|
|
|
|
|
.pause(10000) |
|
|
|
.getText('[data-id="modalDialogModalBody-react"]', (result) => { |
|
|
|
.getText('[data-id="modalDialogModalBody-react"]', (result) => { |
|
|
|
console.log(result) |
|
|
|
console.log(result) |
|
|
|
const value = typeof result.value === 'string' ? result.value : null |
|
|
|
const value = typeof result.value === 'string' ? result.value : null |
|
|
@ -53,8 +53,8 @@ module.exports = { |
|
|
|
.click('[data-id="modal-footer-cancel-react"]') |
|
|
|
.click('[data-id="modal-footer-cancel-react"]') |
|
|
|
.executeScript(`remix.loadgist('${gistid}')`) |
|
|
|
.executeScript(`remix.loadgist('${gistid}')`) |
|
|
|
.perform((done) => { if (runtimeBrowser === 'chrome') { browser.openFile('browser/gists') } done() }) |
|
|
|
.perform((done) => { if (runtimeBrowser === 'chrome') { browser.openFile('browser/gists') } done() }) |
|
|
|
.waitForElementVisible(`li[key="browser/gists/${gistid}"]`) |
|
|
|
.waitForElementVisible(`[data-id="treeViewLitreeViewItembrowser/gists/${gistid}"]`) |
|
|
|
.click(`li[key="browser/gists/${gistid}"]`) |
|
|
|
.click(`[data-id="treeViewLitreeViewItembrowser/gists/${gistid}"]`) |
|
|
|
.openFile(`browser/gists/${gistid}/README.txt`) |
|
|
|
.openFile(`browser/gists/${gistid}/README.txt`) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|