UNPKG

@qavajs/core

Version:

qavajs framework core

19 lines (16 loc) 639 B
import type { DataTable, IWorld } from '@cucumber/cucumber'; import type { Memory } from '@qavajs/memory'; export interface Validation { (AR: any, ER: any): void; type: string; poll: (AR: any, ER: any, options?: {timeout?: number, interval?: number}) => Promise<unknown> } export interface IQavajsWorld extends IWorld { getValue(expression: string): any; setValue(key: string, value: any): void; executeStep(step: string, extraParam?: DataTable | string): Promise<void>; executeTest(path: string, title: string): Promise<void>; validation(type: string): Validation; memory: Memory; config: any; }