-
Notifications
You must be signed in to change notification settings - Fork 494
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(client): fix initial diagram coordinates
closes #4488
- Loading branch information
1 parent
8d195a4
commit 4e1538f
Showing
4 changed files
with
55 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** | ||
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH | ||
* under one or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information regarding copyright | ||
* ownership. | ||
* | ||
* Camunda licenses this file to you under the MIT; you may not use this file | ||
* except in compliance with the MIT License. | ||
*/ | ||
|
||
describe('tabs/cloud-bpmn', function() { | ||
|
||
describe('initial diagram', function() { | ||
|
||
it('should contain placeholders', function() { | ||
|
||
// when | ||
const contents = require('../diagram.bpmn'); | ||
|
||
// then | ||
expect(contents).to.contain('id="Definitions_{{ ID }}"'); | ||
expect(contents).to.contain('id="Process_{{ ID:process }}"'); | ||
}); | ||
|
||
|
||
it('should have initial start event snapped to grid', function() { | ||
|
||
// when | ||
const contents = require('../diagram.bpmn'); | ||
|
||
// then | ||
expect(contents).to.match( | ||
/<bpmndi:BPMNShape id="StartEvent_1_di" bpmnElement="StartEvent_1">\s+<dc:Bounds x="182" y="162" width="36" height="36" \/>\s+<\/bpmndi:BPMNShape>/ | ||
); | ||
}); | ||
|
||
}); | ||
|
||
}); |
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