diff --git a/apps/remix-ide-e2e/src/commands/waitForElementNotContainsText.ts b/apps/remix-ide-e2e/src/commands/waitForElementNotContainsText.ts index e482a627f1..595897fcdb 100644 --- a/apps/remix-ide-e2e/src/commands/waitForElementNotContainsText.ts +++ b/apps/remix-ide-e2e/src/commands/waitForElementNotContainsText.ts @@ -19,7 +19,7 @@ class WaitForElementNotContainsText extends EventEmitter { waitId = setTimeout(() => { clearInterval(runid) - this.api.assert.fail(`TimeoutError: An error occurred while running .waitForElementContainsText() command on ${id} after ${timeout} milliseconds. expected: ${value} - got: ${currentValue}`) + this.api.assert.ok(true, `"${value}" wasn't found.`) }, timeout) return this } diff --git a/apps/remix-ide-e2e/src/tests/terminal.test.ts b/apps/remix-ide-e2e/src/tests/terminal.test.ts index eb54b471f6..29413a7da0 100644 --- a/apps/remix-ide-e2e/src/tests/terminal.test.ts +++ b/apps/remix-ide-e2e/src/tests/terminal.test.ts @@ -357,7 +357,7 @@ module.exports = { .useCss() .waitForElementContainsText('*[data-id="terminalJournal"]', 'test running free function', 120000) .WaitForElementNotContainsText('*[data-id="terminalJournal"]', `test running free function - test running free function`) + test running free function`, 2000) } }