From e11b08718aaac21bcd5564d84787f9127588e0f3 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Wed, 21 Feb 2024 14:55:58 +0100 Subject: [PATCH] format e2e --- apps/remix-ide-e2e/src/tests/gist.test.ts | 38 +++++++++++------------ 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/gist.test.ts b/apps/remix-ide-e2e/src/tests/gist.test.ts index 0f32cd789b..5b025e95f0 100644 --- a/apps/remix-ide-e2e/src/tests/gist.test.ts +++ b/apps/remix-ide-e2e/src/tests/gist.test.ts @@ -145,24 +145,24 @@ module.exports = { .openFile(`README.txt`) .waitForElementVisible(`div[data-path='gist ${testData.validGistId}/README.txt']`) .assert.containsText(`div[data-path='gist ${testData.validGistId}/README.txt'] > span`, 'README.txt') - }, + }, - 'Load Gist from URL and verify truncated files are loaded #group3': function (browser: NightwatchBrowser) { - const gistId = '1b179bf1b92c8b0664b4cbe61774e15d' - browser - .url('http://127.0.0.1:8080/#gist=' + gistId) // loading the gist - .refreshPage() - .currentWorkspaceIs('gist ' + gistId) - .waitForElementVisible('*[data-id="remixIdeIconPanel"]', 15000) - .waitForElementVisible(`#fileExplorerView li[data-path='contracts']`, 30000) - .openFile(`contracts/2_Owner.sol`) - .getEditorValue((content) => { - browser.assert.ok(content.indexOf('contract Owner {') !== -1) - }) - .click('*[data-id="workspacesMenuDropdown"]') - .click('*[data-id="workspacepublishToGist"]') - .modalFooterOKClick('fileSystem') - .waitForElementVisible('*[data-shared="tooltipPopup"]', 5000) - .assert.containsText('*[data-shared="tooltipPopup"]', 'Saving gist (' + gistId + ') ...') - } + 'Load Gist from URL and verify truncated files are loaded #group3': function (browser: NightwatchBrowser) { + const gistId = '1b179bf1b92c8b0664b4cbe61774e15d' + browser + .url('http://127.0.0.1:8080/#gist=' + gistId) // loading the gist + .refreshPage() + .currentWorkspaceIs('gist ' + gistId) + .waitForElementVisible('*[data-id="remixIdeIconPanel"]', 15000) + .waitForElementVisible(`#fileExplorerView li[data-path='contracts']`, 30000) + .openFile(`contracts/2_Owner.sol`) + .getEditorValue((content) => { + browser.assert.ok(content.indexOf('contract Owner {') !== -1) + }) + .click('*[data-id="workspacesMenuDropdown"]') + .click('*[data-id="workspacepublishToGist"]') + .modalFooterOKClick('fileSystem') + .waitForElementVisible('*[data-shared="tooltipPopup"]', 5000) + .assert.containsText('*[data-shared="tooltipPopup"]', 'Saving gist (' + gistId + ') ...') + } }