0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-29 03:04:16 +01:00
posthog/cypress/support/index.ts
Raquel Smith bed4d790e9
feat: use billing info for PayGateMini (#20438)
* refactor PayGateMini

* cypress command for handling subscription status

* fix
2024-02-20 22:43:48 +00:00

28 lines
775 B
TypeScript

/// <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 {}