update class for annotation e2e

pull/4010/head
aniket-engg 1 year ago
parent 6da6401293
commit 1e6ba4f806
  1. 2
      apps/remix-ide-e2e/src/commands/checkAnnotations.ts
  2. 2
      apps/remix-ide-e2e/src/commands/checkAnnotationsNotPresent.ts

@ -3,7 +3,7 @@ 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'))
this.api.assert.containsText(`.glyph-margin-widgets .${type} + div`, line.toString()).perform(() => this.emit('complete'))
return this
}
}

@ -3,7 +3,7 @@ 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'))
this.api.waitForElementNotPresent(`.glyph-margin-widgets .${type}`).perform(() => this.emit('complete'))
return this
}
}

Loading…
Cancel
Save