Interface Tester

Index

Methods

Methods

public assert(condition: boolean, message?: string): any

Parameters

  • condition: boolean
  • message?: string optional

Returns

any

public assertDoesntExist(selector: string, message?: string): any

Parameters

  • selector: string
  • message?: string optional

Returns

any

public assertElementCount(selctor: string, expected: number, message?: string): any

Parameters

  • selctor: string
  • expected: number
  • message?: string optional

Returns

any

public assertEquals(testValue: any, expected: any, message?: string): any

Parameters

  • testValue: any
  • expected: any
  • message?: string optional

Returns

any

public assertEval(fn: Function, message: string, arguments: any): any

Parameters

  • fn: Function
  • message: string
  • arguments: any

Returns

any

public assertEvalEquals(fn: Function, expected: any, message?: string, arguments?: any): any

Parameters

  • fn: Function
  • expected: any
  • message?: string optional
  • arguments?: any optional

Returns

any

public assertExists(selector: string, message?: string): any

Parameters

  • selector: string
  • message?: string optional

Returns

any

public assertFalsy(subject: any, message?: string): any

Parameters

  • subject: any
  • message?: string optional

Returns

any

public assertField(inputName: string, expected: string, message?: string): any

Parameters

  • inputName: string
  • expected: string
  • message?: string optional

Returns

any

public assertFieldCSS(cssSelector: string, expected: string, message?: string): any

Parameters

  • cssSelector: string
  • expected: string
  • message?: string optional

Returns

any

public assertFieldName(inputName: string, expected: string, message?: string, options?: any): any

Parameters

  • inputName: string
  • expected: string
  • message?: string optional
  • options?: any optional

Returns

any

public assertFieldXPath(xpathSelector: string, expected: string, message?: string): any

Parameters

  • xpathSelector: string
  • expected: string
  • message?: string optional

Returns

any

public assertHttpStatus(status: number, message?: string): any

Parameters

  • status: number
  • message?: string optional

Returns

any

public assertInstanceOf(input: any, ctor: Function, message?: string): any

Parameters

  • input: any
  • ctor: Function
  • message?: string optional

Returns

any

public assertMatch(subject: any, pattern: RegExp, message?: string): any

Parameters

  • subject: any
  • pattern: RegExp
  • message?: string optional

Returns

any

public assertNot(subject: any, message?: string): any

Parameters

  • subject: any
  • message?: string optional

Returns

any

public assertNotEquals(testValue: any, expected: any, message?: string): any

Parameters

  • testValue: any
  • expected: any
  • message?: string optional

Returns

any

public assertNotVisible(selector: string, message?: string): any

Parameters

  • selector: string
  • message?: string optional

Returns

any

public assertRaises(fn: Function, args: Array<any>, message?: string): any

Parameters

  • fn: Function
  • args: Array<any>
  • message?: string optional

Returns

any

public assertResourceExists(testFx: Function, message?: string): any

Parameters

  • testFx: Function
  • message?: string optional

Returns

any

public assertSelectorDoesntHaveText(selector: string, text: string, message?: string): any

Parameters

  • selector: string
  • text: string
  • message?: string optional

Returns

any

public assertSelectorExists(selector: string, message?: string): any

Parameters

  • selector: string
  • message?: string optional

Returns

any

public assertSelectorHasText(selector: string, text: string, message?: string): any

Parameters

  • selector: string
  • text: string
  • message?: string optional

Returns

any

public assertTextDoesntExist(unexpected: string, message: string): any

Parameters

  • unexpected: string
  • message: string

Returns

any

public assertTextExists(expected: string, message?: string): any

Parameters

  • expected: string
  • message?: string optional

Returns

any

public assertTitle(expected: string, message?: string): any

Parameters

  • expected: string
  • message?: string optional

Returns

any

public assertTitleMatch(pattern: RegExp, message?: string): any

Parameters

  • pattern: RegExp
  • message?: string optional

Returns

any

public assertTruthy(subject: any, message?: string): any

Parameters

  • subject: any
  • message?: string optional

Returns

any

public assertType(input: any, type: string, message?: string): any

Parameters

  • input: any
  • type: string
  • message?: string optional

Returns

any

public assertUrlMatch(pattern: string, message?: string): any

Parameters

  • pattern: string
  • message?: string optional

Returns

any

public assertUrlMatch(pattern: RegExp, message?: string): any

Parameters

  • pattern: RegExp
  • message?: string optional

Returns

any

public assertVisible(selector: string, message?: string): any

Parameters

  • selector: string
  • message?: string optional

Returns

any

public begin(description: string, planned: number, suite: Function): any

Parameters

  • description: string
  • planned: number
  • suite: Function

Returns

any

public begin(description: string, suite: Function): any

Parameters

  • description: string
  • suite: Function

Returns

any

public begin(description: string, planned: number, config: Object): any

Parameters

  • description: string
  • planned: number
  • config: Object

Returns

any

public begin(description: string, config: Object): any

Parameters

  • description: string
  • config: Object

Returns

any

public colorize(message: string, style: string): any

Parameters

  • message: string
  • style: string

Returns

any

public comment(message: string): any

Parameters

  • message: string

Returns

any

public done(expected?: number): any

Parameters

  • expected?: number optional

Returns

any

public error(message: string): any

Parameters

  • message: string

Returns

any

public fail(message: string): any

Parameters

  • message: string

Returns

any

public formatMessage(message: string, style: string): any

Parameters

  • message: string
  • style: string

Returns

any

public getFailures(): Cases

Returns

Cases

public getPasses(): Cases

Returns

Cases

public info(message: string): any

Parameters

  • message: string

Returns

any

public pass(message: string): any

Parameters

  • message: string

Returns

any

public renderResults(exit: boolean, status: number, save: string): any

Parameters

  • exit: boolean
  • status: number
  • save: string

Returns

any

public setup(fn: Function): any

Parameters

  • fn: Function

Returns

any

public skip(nb: number, message: string): any

Parameters

  • nb: number
  • message: string

Returns

any

public tearDown(fn: Function): any

Parameters

  • fn: Function

Returns

any