const { dragKonva, serialize } = require("../helpers"); const assert = require("assert"); const config = ` `; const data = { image: "https://htx-pub.s3.us-east-1.amazonaws.com/examples/images/nick-owuor-astro-nic-visuals-wDifg5xc9Z4-unsplash.jpg", }; Feature("Two or more same named tools referred same image").tag("@regress"); Scenario("Two RectangleLabels", async ({ I, LabelStudio, AtLabels, AtOutliner }) => { I.amOnPage("/"); LabelStudio.init({ config, data }); LabelStudio.waitForObjectsReady(); AtLabels.clickLabel("Plane"); I.executeScript(dragKonva, [300, 300, 50, 50]); AtLabels.clickLabel("Car"); I.executeScript(dragKonva, [100, 600, 400, -300]); AtOutliner.seeRegions(2); const result = await I.executeScript(serialize); assert.deepStrictEqual(result.length, 2); });