Skip to content
Closed
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
27 changes: 13 additions & 14 deletions tests/browser/initial-position.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,18 @@ readingTest(
);

for (const count of [1, 3, 5, 7, 9]) {
test(`near-fit channel with ${count} mixed-height rows starts at bottom`, async ({
page,
app,
}) => {
app.histories.set(
"primary/beta",
app.histories.get("primary/beta").slice(0, count),
);
await open(page, app);
await select(page, "Beta");
await bottom(page, app, `cold ${count}-row Beta`);
await select(page, "Alpha");
await select(page, "Beta");
await bottom(page, app, `warm ${count}-row Beta`);
const nearFitTest = test.extend({
historyCounts: { alpha: 1, beta: count },
});
nearFitTest(
`near-fit channel with ${count} mixed-height rows starts at bottom`,
async ({ page, app }) => {
await open(page, app);
await select(page, "Beta");
await bottom(page, app, `cold ${count}-row Beta`);
await select(page, "Alpha");
await select(page, "Beta");
await bottom(page, app, `warm ${count}-row Beta`);
},
);
}
Loading