From 4048577b98c0c31d394532dc00c2f9a4582e7dc5 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 23 Nov 2023 13:08:30 +0100 Subject: [PATCH] fix E2E --- .../remix-ide-e2e/src/commands/waitForElementNotContainsText.ts | 2 +- apps/remix-ide-e2e/src/tests/terminal.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) } }