forked from PostHog/posthog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
27 lines (23 loc) · 775 Bytes
/
index.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
/// <reference types="cypress" />
declare global {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace Cypress {
interface Chainable {
/**
* Custom command to login to PostHog
*/
login(): Chainable<Element>
/**
* Custom command to click a navigation menu item
* @example cy.clickNavMenu('dashboards')
*/
clickNavMenu(name: string): Chainable<Element>
/**
* Custom command to set subscription status
* @example cy.useSubscriptionStatus('unsubscribed')
*/
useSubscriptionStatus(name: 'unsubscribed' | 'subscribed'): Chainable<Element>
}
}
}
export {}