Improve test readability

This commit is contained in:
HarelM
2026-07-09 14:16:12 +03:00
parent cc317c20a1
commit 3d1919738b
+4 -3
View File
@@ -330,9 +330,10 @@ describe("layers list", () => {
describe("sticky header", () => {
test("should keep header visible when scrolling layer list", async () => {
// Setup: Create multiple layers to enable scrolling
for (let i = 0; i < 20; i++) {
// The modal is already open (beforeEach) for the first layer.
if (i > 0) await when.modal.open();
// The modal is already open (beforeEach) for the first layer.
await when.modal.fillLayers({ id: `layer-0`, type: "background" });
for (let i = 1; i < 20; i++) {
await when.modal.open();
await when.modal.fillLayers({ id: `layer-${i}`, type: "background" });
}