Skip to content

Commit 80f0d85

Browse files
committed
test: enable experimentalMemoryManagement
1 parent 659ae28 commit 80f0d85

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

cypress.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ export default defineConfig({
3434
video: false,
3535
screenshotOnRunFailure: false,
3636
scrollBehavior: false,
37+
experimentalMemoryManagement: true,
3738
});

packages/main/src/components/AnalyticalTable/AnalyticalTable.cy.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3560,20 +3560,16 @@ describe('AnalyticalTable', () => {
35603560
cy.get('[data-component-name="AnalyticalTableContainer"]').findByText('Name-12').should('be.visible');
35613561
cy.get('[data-component-name="AnalyticalTableContainer"]').findByText('Name-11').should('not.be.visible');
35623562

3563+
const cols = [...columns, ...new Array(50).fill('').map((_, index) => ({ id: `${index}`, Header: () => index }))];
35633564
const ScrollToHorizontal = () => {
35643565
const tableRef = useRef(null);
35653566
useEffect(() => {
35663567
tableRef.current.horizontalScrollTo(1020);
35673568
}, []);
3568-
return (
3569-
<AnalyticalTable
3570-
data={generateMoreData(200)}
3571-
columns={[...columns, ...new Array(50).fill('').map((_, index) => ({ id: `${index}`, Header: () => index }))]}
3572-
ref={tableRef}
3573-
/>
3574-
);
3569+
return <AnalyticalTable data={generateMoreData(50)} columns={cols} ref={tableRef} />;
35753570
};
35763571
cy.mount(<ScrollToHorizontal />);
3572+
cy.wait(500);
35773573
cy.get('[data-component-name="AnalyticalTableContainer"]').findByText('13').should('be.visible');
35783574
cy.get('[data-component-name="AnalyticalTableContainer"]').findByText('12').should('not.be.visible');
35793575
const ScrollToItemHorizontal = () => {

0 commit comments

Comments
 (0)