diff --git a/apps/remix-ide-e2e/src/commands/waitForElementNotContainsText.ts b/apps/remix-ide-e2e/src/commands/waitForElementNotContainsText.ts index 595897fcdb..8f4696c431 100644 --- a/apps/remix-ide-e2e/src/commands/waitForElementNotContainsText.ts +++ b/apps/remix-ide-e2e/src/commands/waitForElementNotContainsText.ts @@ -1,7 +1,7 @@ import { NightwatchBrowser } from 'nightwatch' import EventEmitter from 'events' -class WaitForElementNotContainsText extends EventEmitter { +class waitForElementNotContainsText extends EventEmitter { command (this: NightwatchBrowser, id: string, value: string, timeout = 10000): NightwatchBrowser { let waitId // eslint-disable-line let currentValue @@ -25,4 +25,4 @@ class WaitForElementNotContainsText extends EventEmitter { } } -module.exports = WaitForElementNotContainsText +module.exports = waitForElementNotContainsText diff --git a/apps/remix-ide-e2e/src/tests/terminal.test.ts b/apps/remix-ide-e2e/src/tests/terminal.test.ts index 29413a7da0..c0b6b52c25 100644 --- a/apps/remix-ide-e2e/src/tests/terminal.test.ts +++ b/apps/remix-ide-e2e/src/tests/terminal.test.ts @@ -356,7 +356,7 @@ module.exports = { }) .useCss() .waitForElementContainsText('*[data-id="terminalJournal"]', 'test running free function', 120000) - .WaitForElementNotContainsText('*[data-id="terminalJournal"]', `test running free function + .waitForElementNotContainsText('*[data-id="terminalJournal"]', `test running free function test running free function`, 2000) } } diff --git a/apps/remix-ide-e2e/src/types/index.d.ts b/apps/remix-ide-e2e/src/types/index.d.ts index 0a793a9b7a..ada7b9cca9 100644 --- a/apps/remix-ide-e2e/src/types/index.d.ts +++ b/apps/remix-ide-e2e/src/types/index.d.ts @@ -69,7 +69,7 @@ declare module 'nightwatch' { switchWorkspace: (workspaceName: string) => NightwatchBrowser switchEnvironment: (provider: string) => NightwatchBrowser connectToExternalHttpProvider: (url: string, identifier: string) => NightwatchBrowser - WaitForElementNotContainsText: (id: string, value: string, timeout: number = 10000) => NightwatchBrowser + waitForElementNotContainsText: (id: string, value: string, timeout: number = 10000) => NightwatchBrowser } export interface NightwatchBrowser {