Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

fix: LEAP-724: Fix Textarea required + skipDuplicates #1705

Merged
merged 9 commits into from
Feb 22, 2024
Merged
6 changes: 3 additions & 3 deletions e2e/tests/ocr.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Scenario('Drawing multiple blank regions and then attaching labels', async ({ I,
'ff_front_1170_outliner_030222_short': true,
});
I.amOnPage('/');
LabelStudio.init({ config: createConfig( ), data });
LabelStudio.init({ config: createConfig(), data });
AtImageView.waitForImage();
AtSettings.open();
AtSettings.setGeneralSettings({
Expand Down Expand Up @@ -192,12 +192,12 @@ Scenario('Drawing multiple blank regions and then attaching labels', async ({ I,
}
session('Deserialization', () => {
I.amOnPage('/');
LabelStudio.init({ config: createConfig( ), data, annotations: [{ id: 'test', result: results }] });
LabelStudio.init({ config: createConfig(), data, annotations: [{ id: 'test', result: results }] });
AtImageView.waitForImage();
AtOutliner.seeRegions(regions.length);
for (const [idx, region] of Object.entries(regions)) {
if (region.text) {
I.seeInField(AtOutliner.locateRegionIndex((+idx)+1).find('.lsf-textarea-tag__input'), region.text);
I.seeInField(AtOutliner.locateRegionIndex((+idx) + 1).find('.lsf-textarea-tag__input'), region.text);
}
}
});
Expand Down
Loading
Loading