From 1d2f30126065c1c11afba59870f8ef02f48ead04 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Tue, 22 Aug 2023 13:38:28 +0530 Subject: [PATCH] update class for annotation e2e --- apps/remix-ide-e2e/src/commands/checkAnnotations.ts | 6 +++--- .../src/commands/checkAnnotationsNotPresent.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/remix-ide-e2e/src/commands/checkAnnotations.ts b/apps/remix-ide-e2e/src/commands/checkAnnotations.ts index e83a0c6ce1..c6e6fad337 100644 --- a/apps/remix-ide-e2e/src/commands/checkAnnotations.ts +++ b/apps/remix-ide-e2e/src/commands/checkAnnotations.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 } } diff --git a/apps/remix-ide-e2e/src/commands/checkAnnotationsNotPresent.ts b/apps/remix-ide-e2e/src/commands/checkAnnotationsNotPresent.ts index 6ca51e102a..2fc96c890b 100644 --- a/apps/remix-ide-e2e/src/commands/checkAnnotationsNotPresent.ts +++ b/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 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 } }