2022-12-30 11:23:09 +01:00
|
|
|
/// <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>
|
2024-02-20 23:43:48 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom command to set subscription status
|
|
|
|
* @example cy.useSubscriptionStatus('unsubscribed')
|
|
|
|
*/
|
|
|
|
useSubscriptionStatus(name: 'unsubscribed' | 'subscribed'): Chainable<Element>
|
2022-12-30 11:23:09 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-08-29 12:51:36 +02:00
|
|
|
export {}
|