pull/5370/head
yann300 1 year ago committed by Aniket
parent 4048577b98
commit 4d97f80d44
  1. 4
      apps/remix-ide-e2e/src/commands/waitForElementNotContainsText.ts
  2. 2
      apps/remix-ide-e2e/src/tests/terminal.test.ts
  3. 2
      apps/remix-ide-e2e/src/types/index.d.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

@ -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)
}
}

@ -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 {

Loading…
Cancel
Save