From b0ce526e61149abcc40ecb2193c155844f45b31d Mon Sep 17 00:00:00 2001 From: filip mertens Date: Sun, 31 Dec 2023 14:12:45 +0100 Subject: [PATCH] sendkeys --- apps/remix-ide-e2e/src/commands/validateValueInput.ts | 2 +- apps/remix-ide-e2e/src/tests/runAndDeploy.test.ts | 6 +++--- apps/remix-ide-e2e/src/types/index.d.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/remix-ide-e2e/src/commands/validateValueInput.ts b/apps/remix-ide-e2e/src/commands/validateValueInput.ts index 1fa6933879..f68ee1e675 100644 --- a/apps/remix-ide-e2e/src/commands/validateValueInput.ts +++ b/apps/remix-ide-e2e/src/commands/validateValueInput.ts @@ -2,7 +2,7 @@ import { NightwatchBrowser } from 'nightwatch' import EventEmitter from 'events' class ValidateValueInput extends EventEmitter { - command (this: NightwatchBrowser, selector: string, valueTosSet: string, expectedValue: string) { + command (this: NightwatchBrowser, selector: string, valueTosSet: string[], expectedValue: string) { const browser = this.api browser.perform((done) => { browser diff --git a/apps/remix-ide-e2e/src/tests/runAndDeploy.test.ts b/apps/remix-ide-e2e/src/tests/runAndDeploy.test.ts index b22c185d04..ccf31680b4 100644 --- a/apps/remix-ide-e2e/src/tests/runAndDeploy.test.ts +++ b/apps/remix-ide-e2e/src/tests/runAndDeploy.test.ts @@ -25,9 +25,9 @@ module.exports = { 'Should load run and deploy tab and check value validation #flaky #group1': function (browser: NightwatchBrowser) { browser.waitForElementPresent('*[data-id="remixIdeSidePanel"]') .assert.containsText('*[data-id="sidePanelSwapitTitle"]', 'DEPLOY & RUN TRANSACTIONS') - .validateValueInput('*[data-id="dandrValue"]', '999', '999') - .validateValueInput('*[data-id="dandrValue"]', '0000', '0') - .validateValueInput('*[data-id="dandrValue"]', '1.3', '3') // no decimal + .validateValueInput('*[data-id="dandrValue"]', ['9','9','9'], '999') + .validateValueInput('*[data-id="dandrValue"]', ['0','0','0'], '0') + .validateValueInput('*[data-id="dandrValue"]', ['1','.','3'], '3') // no decimal // .validateValueInput('*[data-id="dandrValue"]', 'dragon', '0') // only numbers }, diff --git a/apps/remix-ide-e2e/src/types/index.d.ts b/apps/remix-ide-e2e/src/types/index.d.ts index ada7b9cca9..ffb6a4585f 100644 --- a/apps/remix-ide-e2e/src/types/index.d.ts +++ b/apps/remix-ide-e2e/src/types/index.d.ts @@ -55,7 +55,7 @@ declare module 'nightwatch' { journalLastChild(val: string): NightwatchBrowser checkTerminalFilter(filter: string, test: string): NightwatchBrowser noWorkerErrorFor(version: string): NightwatchBrowser - validateValueInput(selector: string, valueTosSet: string, expectedValue: string): NightwatchBrowser + validateValueInput(selector: string, valueTosSet: string[], expectedValue: string): NightwatchBrowser checkAnnotations(type: string): NightwatchBrowser checkAnnotationsNotPresent(type: string): NightwatchBrowser getLastTransactionHash(callback: (hash: string) => void)