-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DataGrid(T1140411): Add testcafe e2e test cases (#24166)
- Loading branch information
Showing
17 changed files
with
72 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-7.2 KB
...stcafe/tests/dataGrid/etalons/grid-cell-edit-mode-and-new-row-position-last.png
Binary file not shown.
Binary file added
BIN
+24.9 KB
...sts/dataGrid/etalons/grid-new-row_position-first_scroll-mode-standard_top-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.9 KB
...ests/dataGrid/etalons/grid-new-row_position-last_scroll-mode-standard_top-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.9 KB
...ataGrid/etalons/grid-new-row_position-pageBottom_scroll-mode-standard_top-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25 KB
...dataGrid/etalons/grid-new-row_position-pageBottom_scroll-mode-virtual_top-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+24.9 KB
...s/dataGrid/etalons/grid-new-row_position-pageTop_scroll-mode-standard_top-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+24.9 KB
...ts/dataGrid/etalons/grid-new-row_position-pageTop_scroll-mode-virtual_top-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25 KB
...rid/etalons/grid-new-row_position-viewportBottom_scroll-mode-standard_top-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.2 KB
...d/etalons/grid-new-row_position-viewportBottom_scroll-mode-standard_top-162.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25 KB
...Grid/etalons/grid-new-row_position-viewportBottom_scroll-mode-virtual_top-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.1 KB
...id/etalons/grid-new-row_position-viewportBottom_scroll-mode-virtual_top-162.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+24.9 KB
...taGrid/etalons/grid-new-row_position-viewportTop_scroll-mode-standard_top-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.1 KB
...Grid/etalons/grid-new-row_position-viewportTop_scroll-mode-standard_top-162.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+24.9 KB
...ataGrid/etalons/grid-new-row_position-viewportTop_scroll-mode-virtual_top-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26 KB
...aGrid/etalons/grid-new-row_position-viewportTop_scroll-mode-virtual_top-162.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions
12
testing/testcafe/tests/dataGrid/helpers/generateDataSourceData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export const getData = (rowCount: number, colCount: number): Record<string, string>[] => { | ||
const items: Record<string, string>[] = []; | ||
for (let i = 0; i < rowCount; i += 1) { | ||
const item: Record<string, string> = {}; | ||
for (let j = 0; j < colCount; j += 1) { | ||
item[`field_${j}`] = `val_${i}_${j}`; | ||
} | ||
items.push(item); | ||
} | ||
|
||
return items; | ||
}; |