From 9b52370c1c6c2f36ec42cb96da6674ffb0add5ae Mon Sep 17 00:00:00 2001 From: Emil Petrov Date: Thu, 1 Feb 2024 15:01:37 +0200 Subject: [PATCH] test(grid): extract sticky and locked column state tests --- .../grid/tests/grid-locked-column-states.tsx | 140 ++++++++++++++++++ .../grid/tests/grid-sticky-column-states.tsx | 123 +++++++++++++++ 2 files changed, 263 insertions(+) create mode 100644 packages/html/src/grid/tests/grid-locked-column-states.tsx create mode 100644 packages/html/src/grid/tests/grid-sticky-column-states.tsx diff --git a/packages/html/src/grid/tests/grid-locked-column-states.tsx b/packages/html/src/grid/tests/grid-locked-column-states.tsx new file mode 100644 index 00000000000..9f1114c7848 --- /dev/null +++ b/packages/html/src/grid/tests/grid-locked-column-states.tsx @@ -0,0 +1,140 @@ +import { GridContainer, GridContent, GridHeader, GridHeaderCell, GridHeaderTable, GridTable, GridWithLockedColumns } from '../../grid'; +import { TableThead, TableRow, TableTbody, TableTd } from '../../table'; + +export default () => ( + <> +
+ + +
+ + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + +
+
+ +
+ + + + + + + + 10248 + Vins et alcools Chevalier + + + 10249 + Toms Spezialitäten + + + 10250 + Hanari Carnes + + + 10251 + Victuailles en stock (Hover) + + + 10252 + Suprêmes délices (Selected) + + + 10253 + Toms (Selected + Hover) + + + 10254 + Hanari Carnes + + + 10255 + Victuailles en stock + + + +
+ + + + + + + + + + France + Reims + 59 rue de l'Abbaye + + + Germany + Münster + Luisenstr. 48 + + + Brazil + Rio de Janeiro + Rua do Paço, 67 + + + France + Lyon + 2, rue du Commerce + + + Belgium + Charleroi + Boulevard Tirou, 255 + + + Germany + Münster + Luisenstr. 48 + + + Brazil + Rio de Janeiro + Rua do Paço, 67 + + + France + Lyon + 2, rue du Commerce + + + + +
+
+
+ + + +); diff --git a/packages/html/src/grid/tests/grid-sticky-column-states.tsx b/packages/html/src/grid/tests/grid-sticky-column-states.tsx new file mode 100644 index 00000000000..ecd979c6669 --- /dev/null +++ b/packages/html/src/grid/tests/grid-sticky-column-states.tsx @@ -0,0 +1,123 @@ +import { GridContainer, GridContent, GridHeader, GridHeaderCell, GridHeaderTable, GridTable, GridWithStickyColumns } from '../../grid'; +import { TableThead, TableRow, TableTbody, TableTd } from '../../table'; + +export default () => ( + <> +
+ + +
+ + + + + + + + + + + + + + + + + + +
+
+ + +
+ + + + + + + + + + + Chai + 39 + $18.00 + 0 + 10 + + + Chang + 17 + $19.00 + 40 + 25 + + + Aniseed Syrup (Selected) + 13 + $10.00 + 70 + 25 + + + Chef Anton's (Alt Selected) + 53 + $22.00 + 0 + 0 + + + Chef Anton's (Selected + Hover) + 0 + $21.35 + 0 + 0 + + + Grandma's (Alt Selected + Hover) + 120 + $25.00 + 0 + 25 + + + Uncle Bob's Organic Dried Pears + 15 + $30.00 + 0 + 10 + + + Northwoods Cranberry Sauce + 6 + $40.00 + 0 + 0 + + + Mishi Kobe Niku + 29 + 97 + 0 + 0 + + + Ikura + 31 + $31.00 + 0 + 0 + + + +
+
+
+
+
+
+ + + +);