From 710f70683dde610239098f0cfd5bed2d0c241cd3 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Tue, 20 Feb 2024 23:31:00 +0100 Subject: [PATCH] add timeout for gist test --- apps/remix-ide-e2e/src/tests/gist.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/gist.test.ts b/apps/remix-ide-e2e/src/tests/gist.test.ts index ff0c60f23a..0f32cd789b 100644 --- a/apps/remix-ide-e2e/src/tests/gist.test.ts +++ b/apps/remix-ide-e2e/src/tests/gist.test.ts @@ -38,7 +38,7 @@ module.exports = { .executeScriptInTerminal(`remix.loadgist('${gistid}')`) // .perform((done) => { if (runtimeBrowser === 'chrome') { browser.openFile('gists') } done() }) .waitForElementVisible(`[data-id="treeViewLitreeViewItemREADME.txt"]`) - + .openFile(`README.txt`) // Remix publish to gist /* .click('*[data-id="fileExplorerNewFilepublishToGist"]') @@ -111,7 +111,7 @@ module.exports = { .click('[data-id="settingsTabRemoveGistToken"]') .clickLaunchIcon('filePanel') .click('*[data-id="workspacesMenuDropdown"]') - .click('*[data-id="workspacepublishToGist"]') + .click('*[data-id="workspacepublishToGist"]') .waitForElementVisible('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') .execute(function () { (document.querySelector('[data-id="fileSystemModalDialogModalFooter-react"] .modal-ok') as HTMLElement).click() }) .pause(10000) @@ -160,9 +160,9 @@ module.exports = { browser.assert.ok(content.indexOf('contract Owner {') !== -1) }) .click('*[data-id="workspacesMenuDropdown"]') - .click('*[data-id="workspacepublishToGist"]') + .click('*[data-id="workspacepublishToGist"]') .modalFooterOKClick('fileSystem') .waitForElementVisible('*[data-shared="tooltipPopup"]', 5000) - .assert.containsText('*[data-shared="tooltipPopup"]', 'Saving gist (' + gistId + ') ...') + .assert.containsText('*[data-shared="tooltipPopup"]', 'Saving gist (' + gistId + ') ...') } }