test: trace test is updated

This commit is contained in:
Palash gupta 2022-02-16 15:36:20 +05:30
parent 0514c5035e
commit a6da00f801
No known key found for this signature in database
GPG Key ID: 8FD05AE6F9150AD6
3 changed files with 17 additions and 1 deletions

View 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;

View File

@ -40,7 +40,7 @@ const TraceGraph = () => {
return (
<Container>
<Graph data={ChartData} name="traceGraphph" type="line" />
<Graph data={ChartData} name="traceGraph" type="line" />
</Container>
);
};

View File

@ -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}
>