update class for annotation e2e

pull/5370/head
aniket-engg 1 year ago
parent e90a7dd830
commit 1d2f301260
  1. 6
      apps/remix-ide-e2e/src/commands/checkAnnotations.ts
  2. 6
      apps/remix-ide-e2e/src/commands/checkAnnotationsNotPresent.ts

@ -1,9 +1,9 @@
import EventEmitter from 'events'
import { NightwatchBrowser } from 'nightwatch'
import {NightwatchBrowser} from 'nightwatch'
class checkAnnotations extends EventEmitter {
command (this: NightwatchBrowser, type: string, line: number): NightwatchBrowser {
this.api.assert.containsText(`.margin-view-overlays .${type} + div`, line.toString()).perform(() => this.emit('complete'))
command(this: NightwatchBrowser, type: string, line: number): NightwatchBrowser {
this.api.assert.containsText(`.glyph-margin-widgets .${type} + div`, line.toString()).perform(() => this.emit('complete'))
return this
}
}

@ -1,9 +1,9 @@
import EventEmitter from 'events'
import { NightwatchBrowser } from 'nightwatch'
import {NightwatchBrowser} from 'nightwatch'
class checkAnnotationsNotPresent extends EventEmitter {
command (this: NightwatchBrowser, type: string): NightwatchBrowser {
this.api.waitForElementNotPresent(`.margin-view-overlays .${type}`).perform(() => this.emit('complete'))
command(this: NightwatchBrowser, type: string): NightwatchBrowser {
this.api.waitForElementNotPresent(`.glyph-margin-widgets .${type}`).perform(() => this.emit('complete'))
return this
}
}

Loading…
Cancel
Save