forked from cypress-io/cypress-example-todomvc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
34 lines (31 loc) · 758 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/// <reference types="cypress" />
declare namespace Cypress {
interface Chainable<Subject> {
/**
* Create several Todo items via UI
* @example
* cy.createDefaultTodos()
*/
createDefaultTodos(): Chainable<any>
/**
* Creates one Todo using UI
* @example
* cy.createTodo('new item')
*/
createTodo(title: string): Chainable<any>
/**
* Command that injects Axe core library into app html.
* @example
* cy.visit('/')
* cy.v()
*/
addAxeCode(): Chainable<any>
/**
* Run a11y tests or only a subset of all tests
* @see https://github.com/avanslaars/cypress-axe
* @example
* cy.checkA11y()
*/
checkA11y(any, object): Chainable<any>
}
}