mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-10 00:08:58 +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 (
|
||||
<Container>
|
||||
<Graph data={ChartData} name="traceGraphph" type="line" />
|
||||
<Graph data={ChartData} name="traceGraph" type="line" />
|
||||
</Container>
|
||||
);
|
||||
};
|
||||
|
@ -56,6 +56,7 @@ const TraceGraphFilter = () => {
|
||||
|
||||
<SelectComponent
|
||||
dropdownMatchSelectWidth
|
||||
data-testid="selectedFunction"
|
||||
value={functions.find((e) => selectedFunction === e.key)?.displayValue}
|
||||
onChange={onClickSelectedFunctionHandler}
|
||||
>
|
||||
@ -69,6 +70,7 @@ const TraceGraphFilter = () => {
|
||||
<label>Group By</label>
|
||||
<SelectComponent
|
||||
dropdownMatchSelectWidth
|
||||
data-testid="selectedGroupBy"
|
||||
value={groupBy.find((e) => selectedGroupBy === e.key)?.displayValue}
|
||||
onChange={onClickSelectedGroupByHandler}
|
||||
>
|
||||
|
Loading…
x
Reference in New Issue
Block a user