pull/5370/head
filip mertens 11 months ago
parent 6425d10580
commit b0ce526e61
  1. 2
      apps/remix-ide-e2e/src/commands/validateValueInput.ts
  2. 6
      apps/remix-ide-e2e/src/tests/runAndDeploy.test.ts
  3. 2
      apps/remix-ide-e2e/src/types/index.d.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

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

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

Loading…
Cancel
Save