mirror of
https://github.com/maputnik/editor.git
synced 2026-08-24 22:17:25 +00:00
Improve test readability
This commit is contained in:
@@ -330,9 +330,10 @@ describe("layers list", () => {
|
|||||||
describe("sticky header", () => {
|
describe("sticky header", () => {
|
||||||
test("should keep header visible when scrolling layer list", async () => {
|
test("should keep header visible when scrolling layer list", async () => {
|
||||||
// Setup: Create multiple layers to enable scrolling
|
// Setup: Create multiple layers to enable scrolling
|
||||||
for (let i = 0; i < 20; i++) {
|
// The modal is already open (beforeEach) for the first layer.
|
||||||
// The modal is already open (beforeEach) for the first layer.
|
await when.modal.fillLayers({ id: `layer-0`, type: "background" });
|
||||||
if (i > 0) await when.modal.open();
|
for (let i = 1; i < 20; i++) {
|
||||||
|
await when.modal.open();
|
||||||
await when.modal.fillLayers({ id: `layer-${i}`, type: "background" });
|
await when.modal.fillLayers({ id: `layer-${i}`, type: "background" });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user