mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-06-04 11:25:52 +08:00

* chore: cypress version is updated * chore: tsconfig is updated * update: default fixture json for the api are added * feat: redux-store is exposed to the Cypress * test: Login test is updated * test: global time test for default and metrics application is updated * chore: removed duplicate test case and commented unused lines
25 lines
653 B
TypeScript
25 lines
653 B
TypeScript
import '@testing-library/cypress/add-commands';
|
|
|
|
import CheckRouteDefaultGlobalTimeOptions, {
|
|
CheckRouteDefaultGlobalTimeOptionsProps,
|
|
} from '../CustomFunctions/checkRouteDefaultGlobalTimeOptions';
|
|
import Login, { LoginProps } from '../CustomFunctions/Login';
|
|
|
|
Cypress.Commands.add('login', Login);
|
|
Cypress.Commands.add(
|
|
'checkDefaultGlobalOption',
|
|
CheckRouteDefaultGlobalTimeOptions,
|
|
);
|
|
|
|
declare global {
|
|
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
namespace Cypress {
|
|
interface Chainable {
|
|
login(props: LoginProps): void;
|
|
checkDefaultGlobalOption(
|
|
props: CheckRouteDefaultGlobalTimeOptionsProps,
|
|
): void;
|
|
}
|
|
}
|
|
}
|