We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afdbe00 commit 8fa9df2Copy full SHA for 8fa9df2
src/test-utils/dom/table/index.ts
@@ -177,7 +177,10 @@ export default class TableWrapper extends ComponentWrapper {
177
* @param rowIndex 1-based index of the row.
178
*/
179
findExpandToggle(rowIndex: number): ElementWrapper | null {
180
- return this.findNativeTable().find(`tbody tr:nth-child(${rowIndex}) .${expandToggleStyles['expand-toggle']}`);
+ // the file was moved, which changed the hash, so we cannot use old test class anymore.
181
+ const oldSelector = `tbody tr:nth-child(${rowIndex}) .awsui_expand-toggle_1ss49_1w02f_153`;
182
+ const newSelector = `tbody tr:nth-child(${rowIndex}) .${expandToggleStyles['expand-toggle']}`;
183
+ return this.findNativeTable().findAny(oldSelector, newSelector);
184
}
185
186
/**
0 commit comments