-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Id): create validation function as callback
closes #1021
- Loading branch information
Showing
4 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,6 +113,26 @@ describe('provider/bpmn - IdProps', function() { | |
|
||
describe('validation', function() { | ||
|
||
it.only('should set invalid', inject(async function(elementRegistry, selection) { | ||
Check failure on line 116 in test/spec/provider/bpmn/IdProps.spec.js
|
||
|
||
// given | ||
const task = elementRegistry.get('Task_1'); | ||
|
||
await act(() => { | ||
selection.select(task); | ||
}); | ||
|
||
// when | ||
const idInput = domQuery('input[name=id]', container); | ||
changeInput(idInput, ''); | ||
await act(() => {}); | ||
|
||
// then | ||
const error = domQuery('.bio-properties-panel-error', container); | ||
expect(error).to.exist; | ||
})); | ||
|
||
|
||
it('should NOT remove id', inject(async function(elementRegistry, selection) { | ||
|
||
// given | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters