Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/table/__integ__/resizable-columns.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
}

async assertColumnWidth(columnIndex: number, expected: number) {
await this.browser.waitUntil(async () => (await this.getColumnWidth(columnIndex)) === expected, {

Check warning on line 124 in src/table/__integ__/resizable-columns.test.ts

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 3/4)

RETRY 1: should recover column widths when the inner state is reset

Column at index "2" should have width "230" at node_modules/webdriverio/build/node.js:5909:15 at Browser.wrapCommandFn (node_modules/@wdio/utils/build/index.js:982:23) at TablePage.assertColumnWidth (src/table/__integ__/resizable-columns.test.ts:124:5) at src/table/__integ__/resizable-columns.test.ts:348:5 at src/table/__integ__/resizable-columns.test.ts:151:5 at Object.<anonymous> (node_modules/@cloudscape-design/browser-test-tools/use-browser.js:36:13)
timeout: 1000,
timeoutMsg: `Column at index "${columnIndex}" should have width "${expected}"`,
});
Expand Down Expand Up @@ -345,8 +345,7 @@
await page.resizeColumn(2, 100);
const oldWidth = await page.getColumnWidth(2);
await page.click('#reset-state');
const newWidth = await page.getColumnWidth(2);
expect(oldWidth).toEqual(newWidth);
await page.assertColumnWidth(2, oldWidth);
})
);

Expand Down
Loading