From 147fdb3e379cfc620e975d0bfb8ee791fb483f00 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Thu, 17 Dec 2020 13:40:17 +0100 Subject: [PATCH] fix test --- apps/remix-ide-e2e/src/commands/validateValueInput.ts | 3 ++- apps/remix-ide-e2e/src/tests/runAndDeploy.ts | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide-e2e/src/commands/validateValueInput.ts b/apps/remix-ide-e2e/src/commands/validateValueInput.ts index 640ead9f7a..9fcede400b 100644 --- a/apps/remix-ide-e2e/src/commands/validateValueInput.ts +++ b/apps/remix-ide-e2e/src/commands/validateValueInput.ts @@ -12,8 +12,9 @@ class ValidateValueInput extends EventEmitter { return elem.value }, [selector], function (result) { browser.assert.equal(result.value, expectedValue) - done() }) + done() + this.emit('complete') }) return this } diff --git a/apps/remix-ide-e2e/src/tests/runAndDeploy.ts b/apps/remix-ide-e2e/src/tests/runAndDeploy.ts index 444ab314a0..b7566b3a06 100644 --- a/apps/remix-ide-e2e/src/tests/runAndDeploy.ts +++ b/apps/remix-ide-e2e/src/tests/runAndDeploy.ts @@ -28,7 +28,6 @@ module.exports = { browser.waitForElementPresent('*[data-id="remixIdeSidePanel"]') .assert.containsText('*[data-id="sidePanelSwapitTitle"]', 'DEPLOY & RUN TRANSACTIONS') .validateValueInput('#value', '0000', '0') - .validateValueInput('#value', '-44', '0') .validateValueInput('#value', '', '0') .validateValueInput('#value', 'dragon', '0') },