We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 902a989 commit 5ed9e33Copy full SHA for 5ed9e33
types/command.d.ts
@@ -1,9 +1,18 @@
1
2
import type { CompareSnapshotOptions } from './options'
3
4
-declare namespace Cypress {
5
- interface Chainable<Subject = any> {
6
- compareSnapshot(options: string | CompareSnapshotOptions): Chainable<Element>
+declare global {
+ namespace Cypress {
+ interface Chainable<Subject = any> {
7
+ /**
8
+ * custom command to take screenshots and compare them with their baseline images
9
+ */
10
+ compareSnapshot(options: string | CompareSnapshotOptions): Chainable<Element>
11
12
+ * custom command to hide/unhide elements
13
14
+ hideElement(hide?: boolean): void
15
+ }
16
}
17
18
0 commit comments