2021-08-26 11:50:47 +05:30
|
|
|
import '@testing-library/cypress/add-commands';
|
2021-09-23 15:43:43 +05:30
|
|
|
|
2021-10-22 17:07:57 +05:30
|
|
|
import CheckRouteDefaultGlobalTimeOptions, {
|
|
|
|
|
CheckRouteDefaultGlobalTimeOptionsProps,
|
|
|
|
|
} from '../CustomFunctions/checkRouteDefaultGlobalTimeOptions';
|
2021-08-27 12:21:24 +05:30
|
|
|
import Login, { LoginProps } from '../CustomFunctions/Login';
|
|
|
|
|
|
|
|
|
|
Cypress.Commands.add('login', Login);
|
2021-10-22 17:07:57 +05:30
|
|
|
Cypress.Commands.add(
|
|
|
|
|
'checkDefaultGlobalOption',
|
|
|
|
|
CheckRouteDefaultGlobalTimeOptions,
|
|
|
|
|
);
|
2021-08-27 12:21:24 +05:30
|
|
|
|
|
|
|
|
declare global {
|
2021-10-22 17:07:57 +05:30
|
|
|
// eslint-disable-next-line @typescript-eslint/no-namespace
|
2021-08-27 12:21:24 +05:30
|
|
|
namespace Cypress {
|
2021-10-22 17:07:57 +05:30
|
|
|
interface Chainable {
|
2021-08-27 12:21:24 +05:30
|
|
|
login(props: LoginProps): void;
|
2021-10-22 17:07:57 +05:30
|
|
|
checkDefaultGlobalOption(
|
|
|
|
|
props: CheckRouteDefaultGlobalTimeOptionsProps,
|
|
|
|
|
): void;
|
2021-08-27 12:21:24 +05:30
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|