mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-16 11:15:58 +08:00
Merge pull request #1133 from palash-signoz/develop-tsc-fix
fix: tsc is fix in cypress
This commit is contained in:
commit
4ca3f1f945
@ -1,8 +1,8 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/no-unused-expressions */
|
||||||
import {
|
import {
|
||||||
getDefaultOption,
|
getDefaultOption,
|
||||||
getOptions,
|
getOptions,
|
||||||
} from 'container/Header/DateTimeSelection/config';
|
} from 'container/TopNav/DateTimeSelection/config';
|
||||||
// import { AppState } from 'store/reducers';
|
|
||||||
|
|
||||||
const CheckRouteDefaultGlobalTimeOptions = ({
|
const CheckRouteDefaultGlobalTimeOptions = ({
|
||||||
route,
|
route,
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/no-unused-expressions */
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
|
|
||||||
import ROUTES from 'constants/routes';
|
import ROUTES from 'constants/routes';
|
||||||
|
@ -26,7 +26,7 @@ describe('Global Time Metrics Application', () => {
|
|||||||
|
|
||||||
cy.wait('@defaultApps');
|
cy.wait('@defaultApps');
|
||||||
|
|
||||||
//clicking on frontend
|
// clicking on frontend
|
||||||
cy.get('tr:nth-child(1) > td:first-child').click();
|
cy.get('tr:nth-child(1) > td:first-child').click();
|
||||||
|
|
||||||
cy
|
cy
|
||||||
@ -64,7 +64,7 @@ describe('Global Time Metrics Application', () => {
|
|||||||
|
|
||||||
cy.wait('@topEndPoints');
|
cy.wait('@topEndPoints');
|
||||||
cy.wait('@serviceOverview');
|
cy.wait('@serviceOverview');
|
||||||
//TODO add errorPercentage also
|
// TODO add errorPercentage also
|
||||||
// cy.wait('@errorPercentage');
|
// cy.wait('@errorPercentage');
|
||||||
cy.wait('@requestPerSecond');
|
cy.wait('@requestPerSecond');
|
||||||
|
|
||||||
|
@ -58,6 +58,7 @@ describe('Metrics', () => {
|
|||||||
parseFloat(errorRate.toString()).toFixed(2),
|
parseFloat(errorRate.toString()).toFixed(2),
|
||||||
);
|
);
|
||||||
expect(rpsName).to.be.equals(callRate.toString());
|
expect(rpsName).to.be.equals(callRate.toString());
|
||||||
|
return null;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -16,7 +16,7 @@ describe('Alerts', () => {
|
|||||||
})
|
})
|
||||||
.as('defaultRules');
|
.as('defaultRules');
|
||||||
|
|
||||||
cy.visit(Cypress.env('baseUrl') + `${ROUTES.LIST_ALL_ALERT}`);
|
cy.visit(`${Cypress.env('baseUrl')}${ROUTES.LIST_ALL_ALERT}`);
|
||||||
|
|
||||||
cy.wait('@defaultRules');
|
cy.wait('@defaultRules');
|
||||||
});
|
});
|
||||||
@ -97,7 +97,7 @@ describe('Alerts', () => {
|
|||||||
|
|
||||||
const defaultLabels = defaultRules.data.rules[index].labels;
|
const defaultLabels = defaultRules.data.rules[index].labels;
|
||||||
|
|
||||||
expect(label).to.be.equals(defaultLabels['severity']);
|
expect(label).to.be.equals(defaultLabels.severity);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/no-unused-expressions */
|
||||||
/* eslint-disable sonarjs/no-duplicate-string */
|
/* eslint-disable sonarjs/no-duplicate-string */
|
||||||
import ROUTES from 'constants/routes';
|
import ROUTES from 'constants/routes';
|
||||||
import { AppState } from 'store/reducers';
|
import { AppState } from 'store/reducers';
|
||||||
@ -33,7 +34,7 @@ describe('Trace', () => {
|
|||||||
})
|
})
|
||||||
.as('Filters');
|
.as('Filters');
|
||||||
|
|
||||||
cy.visit(Cypress.env('baseUrl') + `${ROUTES.TRACE}`);
|
cy.visit(`${Cypress.env('baseUrl')}${ROUTES.TRACE}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('First Initial Load should go with 3 AJAX request', () => {
|
it('First Initial Load should go with 3 AJAX request', () => {
|
||||||
|
@ -4,9 +4,6 @@
|
|||||||
"lib": ["es5", "dom"],
|
"lib": ["es5", "dom"],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
// be explicit about types included
|
|
||||||
// to avoid clashing with Jest types
|
|
||||||
"types": ["cypress", "@testing-library/cypress", "node"],
|
|
||||||
"isolatedModules": false
|
"isolatedModules": false
|
||||||
},
|
},
|
||||||
"include": ["../node_modules/cypress", "./**/*.ts"]
|
"include": ["../node_modules/cypress", "./**/*.ts"]
|
||||||
|
@ -19,7 +19,8 @@
|
|||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"baseUrl": "./src",
|
"baseUrl": "./src",
|
||||||
"downlevelIteration": true,
|
"downlevelIteration": true,
|
||||||
"plugins": [{ "name": "typescript-plugin-css-modules" }]
|
"plugins": [{ "name": "typescript-plugin-css-modules" }],
|
||||||
|
"types": ["cypress", "@testing-library/cypress", "node"]
|
||||||
},
|
},
|
||||||
"exclude": ["node_modules"],
|
"exclude": ["node_modules"],
|
||||||
"include": [
|
"include": [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user