mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-11 00:39:00 +08:00
test: trace test is updated
This commit is contained in:
parent
0514c5035e
commit
a6da00f801
14
frontend/cypress/CustomFunctions/uncaughtExpection.ts
Normal file
14
frontend/cypress/CustomFunctions/uncaughtExpection.ts
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
const resizeObserverLoopErrRe = /ResizeObserver loop limit exceeded/;
|
||||||
|
|
||||||
|
const unCaughtExpection = () => {
|
||||||
|
cy.on('uncaught:exception', (err) => {
|
||||||
|
if (resizeObserverLoopErrRe.test(err.message)) {
|
||||||
|
// returning false here prevents Cypress from
|
||||||
|
// failing the test
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
export default unCaughtExpection;
|
@ -40,7 +40,7 @@ const TraceGraph = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
<Graph data={ChartData} name="traceGraphph" type="line" />
|
<Graph data={ChartData} name="traceGraph" type="line" />
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -56,6 +56,7 @@ const TraceGraphFilter = () => {
|
|||||||
|
|
||||||
<SelectComponent
|
<SelectComponent
|
||||||
dropdownMatchSelectWidth
|
dropdownMatchSelectWidth
|
||||||
|
data-testid="selectedFunction"
|
||||||
value={functions.find((e) => selectedFunction === e.key)?.displayValue}
|
value={functions.find((e) => selectedFunction === e.key)?.displayValue}
|
||||||
onChange={onClickSelectedFunctionHandler}
|
onChange={onClickSelectedFunctionHandler}
|
||||||
>
|
>
|
||||||
@ -69,6 +70,7 @@ const TraceGraphFilter = () => {
|
|||||||
<label>Group By</label>
|
<label>Group By</label>
|
||||||
<SelectComponent
|
<SelectComponent
|
||||||
dropdownMatchSelectWidth
|
dropdownMatchSelectWidth
|
||||||
|
data-testid="selectedGroupBy"
|
||||||
value={groupBy.find((e) => selectedGroupBy === e.key)?.displayValue}
|
value={groupBy.find((e) => selectedGroupBy === e.key)?.displayValue}
|
||||||
onChange={onClickSelectedGroupByHandler}
|
onChange={onClickSelectedGroupByHandler}
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user