Files
grafana/e2e/cypress/support/index.d.ts
2025-05-13 20:27:40 +01:00

21 lines
771 B
TypeScript

/// <reference types="cypress" />
declare namespace Cypress {
interface Chainable {
logToConsole(message: string, optional?: unknown): void;
readProvisions(filePaths: string[]): Chainable;
getJSONFilesFromDir(dirPath: string): Chainable;
startBenchmarking(testName: string): void;
stopBenchmarking(testName: string, appStats: Record<string, unknown>): void;
checkHealthRetryable(fn: Function, retryCount: number): Chainable;
setLocalStorage(key: string, value: string);
}
interface Chainer<Subject extends JQuery<HTMLElement>> {
(chainer: 'be.higherThan'): Chainable<Subject>;
(chainer: 'be.lowerThan'): Chainable<Subject>;
(chainer: 'be.leftOf'): Chainable<Subject>;
(chainer: 'be.rightOf'): Chainable<Subject>;
}
}