Handle Broken Tests 5
This commit is contained in:
parent
7aa03cd39c
commit
37e71bdef2
|
@ -165,28 +165,28 @@ describe('DataObject Interceptor', function() {
|
|||
|
||||
}));
|
||||
|
||||
// it('should not allow two dataObjects to have the same ID', inject(async function(canvas, modeling) {
|
||||
it('should not allow two dataObjects to have the same ID', inject(async function(canvas, modeling) {
|
||||
|
||||
// // Creating the first dataObject
|
||||
// let rootShape = canvas.getRootElement();
|
||||
// const dataObject1 = modeling.createShape({ type: 'bpmn:DataObject' },
|
||||
// { x: 100, y: 100 }, rootShape);
|
||||
// Creating the first dataObject
|
||||
let rootShape = canvas.getRootElement();
|
||||
const dataObject1 = modeling.createShape({ type: 'bpmn:DataObject' },
|
||||
{ x: 100, y: 100 }, rootShape);
|
||||
|
||||
// // Creating the second dataObject
|
||||
// const dataObject2 = modeling.createShape({ type: 'bpmn:DataObject' },
|
||||
// { x: 150, y: 100 }, rootShape);
|
||||
// Creating the second dataObject
|
||||
const dataObject2 = modeling.createShape({ type: 'bpmn:DataObject' },
|
||||
{ x: 150, y: 100 }, rootShape);
|
||||
|
||||
// await expectSelected(dataObject2.id);
|
||||
await expectSelected(dataObject2.id);
|
||||
|
||||
// let entry = findEntry('dataObjectId', container);
|
||||
// let idInput = findInput('text', entry);
|
||||
let entry = findEntry('dataObjectId', container);
|
||||
let idInput = findInput('text', entry);
|
||||
|
||||
// const duplicateId = dataObject1.businessObject.id;
|
||||
// changeInput(idInput, duplicateId);
|
||||
const duplicateId = dataObject1.businessObject.id;
|
||||
changeInput(idInput, duplicateId);
|
||||
|
||||
// // Checkk that the ID change is not successful
|
||||
// expect(dataObject2.businessObject.id).not.to.equal(duplicateId);
|
||||
// Check that the ID change is not successful
|
||||
expect(dataObject2.businessObject.id).not.to.equal(duplicateId);
|
||||
|
||||
// }));
|
||||
}));
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue