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