File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
packages/pluggableWidgets/datagrid-web/e2e Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,16 @@ test.describe("visual testing:", () => {
183
183
await expect ( page . locator ( ".mx-name-datagrid1" ) ) . toBeVisible ( ) ;
184
184
await expect ( page . locator ( ".mx-name-datagrid1" ) ) . toHaveScreenshot ( `datagrid.png` ) ;
185
185
} ) ;
186
+
187
+ test ( "compares with a screenshot baseline and checks datagrid using virtual scrolling are rendered as expected" , async ( {
188
+ page
189
+ } ) => {
190
+ await page . goto ( "/p/virtual-scrolling" ) ;
191
+ await page . waitForLoadState ( "networkidle" ) ;
192
+ await expect ( page . locator ( ".mx-name-dataGrid21" ) ) . toBeVisible ( ) ;
193
+ await page . locator ( ".mx-name-dataGrid21 .mx-name-textFilter1 .filter-selector-content .btn" ) . click ( ) ;
194
+ await expect ( page . locator ( ".mx-name-dataGrid21" ) ) . toHaveScreenshot ( `datagrid-virtual-scrolling.png` ) ;
195
+ } ) ;
186
196
} ) ;
187
197
188
198
test . describe ( "a11y testing:" , ( ) => {
You can’t perform that action at this time.
0 commit comments