|
1 | 1 | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
2 | 2 | // SPDX-License-Identifier: Apache-2.0 |
3 | 3 |
|
| 4 | +import { range } from 'lodash'; |
| 5 | + |
4 | 6 | import { BasePageObject } from '@cloudscape-design/browser-test-tools/page-objects'; |
5 | 7 | import useBrowser from '@cloudscape-design/browser-test-tools/use-browser'; |
6 | 8 |
|
@@ -131,7 +133,7 @@ const setupTest = (testFn: (page: TablePage) => Promise<void>, config?: PageConf |
131 | 133 | return useBrowser({ ...defaultScreen }, async browser => { |
132 | 134 | const page = new TablePage(browser); |
133 | 135 | const params = new URLSearchParams({ |
134 | | - visualRefresh: 'false', |
| 136 | + visualRefresh: 'true', |
135 | 137 | stickyHeader: config?.stickyHeader !== undefined ? String(config.stickyHeader) : 'false', |
136 | 138 | withColumnIds: config?.withColumnIds !== undefined ? String(config.withColumnIds) : 'true', |
137 | 139 | withSelection: config?.withSelection !== undefined ? String(config.withSelection) : 'false', |
@@ -331,8 +333,8 @@ test( |
331 | 333 | }) |
332 | 334 | ); |
333 | 335 |
|
334 | | -(process.env.REACT_VERSION !== '18' ? test : test.skip)( |
335 | | - 'should recover column widths when the inner state is reset', |
| 336 | +test.each(range(0, 100))( |
| 337 | + 'should recover column widths when the inner state is reset, %s', |
336 | 338 | setupTest(async page => { |
337 | 339 | await page.resizeColumn(2, 100); |
338 | 340 | const oldWidth = await page.getColumnWidth(2); |
|
0 commit comments