From a4ea0745e05a56427aa40e0542aa1ec0408b709c Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Tue, 17 Mar 2020 10:49:47 +0000 Subject: [PATCH] Publish all explorer files to gist --- test-browser/tests/fileExplorer.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/test-browser/tests/fileExplorer.js b/test-browser/tests/fileExplorer.js index 6b79f173b3..932693956a 100644 --- a/test-browser/tests/fileExplorer.js +++ b/test-browser/tests/fileExplorer.js @@ -5,11 +5,12 @@ const sauce = require('./sauce') module.exports = { before: function (browser, done) { - init(browser, done, 'http://127.0.0.1:8080', false) + init(browser, done) }, 'Should create a new file `5_New_contract.sol` in file explorer': function (browser) { browser.waitForElementVisible('div[data-id="remixIdeSidePanel"]') + .clickLaunchIcon('fileExplorers') .assert.containsText('h6[data-id="sidePanelSwapitTitle"]', 'FILE EXPLORERS') .click('*[data-id="fileExplorerNewFilecreateNewFile"]') .waitForElementVisible('*[data-id="modalDialogContainer"]') @@ -72,6 +73,20 @@ module.exports = { .waitForElementVisible('*[data-id="modalDialogContainer"]') .modalFooterOKClick() .waitForElementNotPresent('*[data-id="treeViewLibrowser/Browser_E2E_Tests"]') + }, + + 'Should publish all explorer files to github gist': function (browser) { + browser + .waitForElementVisible('*[data-id="fileExplorerNewFilepublishToGist"]') + .click('*[data-id="fileExplorerNewFilepublishToGist"]') + .waitForElementVisible('*[data-id="modalDialogContainer"]') + .modalFooterOKClick() + .pause(10000) + .waitForElementVisible('*[data-id="modalDialogContainer"]') + .modalFooterOKClick() + .pause(2000) + .switchBrowserTab(1) + .assert.urlContains('https://gist.github.com') .end() },