-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
/
index.d.ts
53 lines (44 loc) · 1.33 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/// <reference types="cypress" />
type LoggerMethod = 'log' | 'info' | 'debug';
declare namespace Cypress {
interface Chainable {
/**
* Visit storybook's introduction page
*/
visitStorybook(): Chainable<Element>;
/**
* Custom command to select the DOM element of a story in the canvas tab.
*/
getStoryElement(): Chainable<Element>;
/**
* Custom command to select the DOM element of a docs story in the canvas tab.
*/
getDocsElement(): Chainable<Element>;
/**
* Custom command to select the DOM element of the preview iframe in the canvas tab.
*/
getCanvasElement(): Chainable<Element>;
/**
* Custom command to select the DOM element of the body from the preview iframe in the canvas tab.
*/
getCanvasBodyElement(): Chainable<Element>;
/**
* Navigate to a story.
* 'Storybook Example/Button'
* - kind: `Storybook Example`
* - name: `Button`
* @param kind Story kind
* @param name name of the story
*/
navigateToStory(kind: string, name: string): Chainable<Element>;
/**
* Display addon panel
* @param name of the addon
*/
viewAddonPanel(name: string): Chainable<Element>;
/**
* Returns the element while logging it.
*/
console(method: LoggerMethod): Chainable<Element>;
}
}