Skip to content

Commit 33ad09e

Browse files
committed
fix(test): adapt e2e test for label unicity changes
1 parent 29d5a29 commit 33ad09e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

opencti-platform/opencti-front/tests_e2e/report/report.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ test('Report live entities creation and relationships', { tag: ['@report', '@kno
323323

324324
await reportPage.openNewReportForm();
325325
const reportName = `Report with created entities - ${uuid()}`;
326+
const labelName = `threat-${uuid()}`;
326327
await reportForm.nameField.fill(reportName);
327328

328329
// region Check author labels and external references creation forms
@@ -346,7 +347,7 @@ test('Report live entities creation and relationships', { tag: ['@report', '@kno
346347
await labelForm.getCreateButton().click();
347348
await expect(labelForm.valueField.getByText('This field is required')).toBeVisible();
348349
await expect(labelForm.colorField.getByText('This field is required')).toBeVisible();
349-
await labelForm.valueField.fill('threat');
350+
await labelForm.valueField.fill(labelName);
350351
await expect(labelForm.valueField.getByText('This field is required')).toBeHidden();
351352
await labelForm.colorField.fill('#9d3fb8');
352353
await expect(labelForm.colorField.getByText('This field is required')).toBeHidden();

0 commit comments

Comments
 (0)