From ec5ceb8638413cb03617f6419c6eea5802c49471 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Wed, 10 Nov 2021 14:27:41 +0100 Subject: [PATCH] fix timing --- apps/remix-ide-e2e/src/tests/plugin_api.ts | 4 +++- apps/remix-ide-e2e/src/tests/workspace.test.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/plugin_api.ts b/apps/remix-ide-e2e/src/tests/plugin_api.ts index 9eae1f8c4f..10a9d2c9a4 100644 --- a/apps/remix-ide-e2e/src/tests/plugin_api.ts +++ b/apps/remix-ide-e2e/src/tests/plugin_api.ts @@ -214,7 +214,9 @@ module.exports = { }, 'Should write to file': async function (browser: NightwatchBrowser) { await clickAndCheckLog(browser, 'fileManager:writeFile', null, { event: 'fileSaved', args: ['README.txt'] }, ['README.txt', 'test']) - await clickAndCheckLog(browser, 'fileManager:readFile', 'test', null, 'README.txt') + browser.pause(4000, async () => { + await clickAndCheckLog(browser, 'fileManager:getFile', 'test', null, 'README.txt') + }) }, 'Should set file': async function (browser: NightwatchBrowser) { await clickAndCheckLog(browser, 'fileManager:setFile', null, { event: 'fileAdded', args: ['new.sol'] }, ['new.sol', 'test']) diff --git a/apps/remix-ide-e2e/src/tests/workspace.test.ts b/apps/remix-ide-e2e/src/tests/workspace.test.ts index 42e7e7d507..13f81e6c6e 100644 --- a/apps/remix-ide-e2e/src/tests/workspace.test.ts +++ b/apps/remix-ide-e2e/src/tests/workspace.test.ts @@ -19,7 +19,7 @@ module.exports = { browser .pause(5000) .refresh() - .pause(20000) + .waitForElementVisible('#editorView', 30000) .getEditorValue((content) => { browser.assert.ok(content.indexOf('contract Ballot {') !== -1, 'content doesn\'t include Ballot contract') })