One home per fact: cut the copied rationale, and give the seam test room to mean something
This commit is contained in:
@@ -42,6 +42,8 @@ test("data-table renders sortable headers, row-select, typed cells, badges and k
|
||||
const html = flat(await render(config));
|
||||
|
||||
assert.match(html, /<div class="table-wrap"><table class="table"><caption class="sr-only">People in the directory<\/caption>/);
|
||||
// Opt-in, and only then: the class is what a filled page hands its leftover height to.
|
||||
assert.match(flat(await render({ ...config, scrollRegion: true })), /<div class="table-wrap scroll-region">/);
|
||||
|
||||
// Row-select: header select-all + per-row checkbox with a descriptive label.
|
||||
assert.match(html, /<th class="col-check" scope="col"><input type="checkbox" aria-label="Select all rows"><\/th>/);
|
||||
|
||||
Reference in New Issue
Block a user