Skip to content

Commit 5baebb0

Browse files
authored
test(BottomSheet): name the drag spec's list marker plainly (#10767)
test(BottomSheet): name the drag spec's list marker plainly The proof that a long list scrolls to its end before the sheet stretches marks the sheet's scrolling list with a data attribute. Its name was a leftover label that means nothing here. It is now `data-sheet-list`, which says what it marks. Nothing else changes.
1 parent 3f16782 commit 5baebb0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/core/src/BottomSheet/__tests__/BottomSheetDrag.a11y.chromium.spec.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,11 @@ test('a long list scrolls to its end, then the sheet stretches with the rest of
308308
if (list == null) {
309309
throw new Error('no scrolling list');
310310
}
311-
list.dataset.c17List = '';
311+
list.dataset.sheetList = '';
312312
list.scrollTop = list.scrollHeight - list.clientHeight - 40;
313313
return list.scrollHeight - list.clientHeight;
314314
});
315-
const list = sheet.locator('[data-c17-list]');
315+
const list = sheet.locator('[data-sheet-list]');
316316
const listBox = await list.boundingBox();
317317
if (listBox == null) {
318318
throw new Error('no list box');

0 commit comments

Comments
 (0)