Skip to content

Commit

Permalink
fix: Adding Subnetwork to a configuration without a Communication Ele…
Browse files Browse the repository at this point in the history
…ment failed for the first time

When creating a `Communication` Element in Communication.ts, the created Element is also returned to use it as a parent for the wizard

The `Should create a Communication Element` integration test is extended to also check that the Wizard is closed properly

Signed-off-by: Pascal Wilbrink <pascal.wilbrink@alliander.com>
  • Loading branch information
pascalwilbrink committed Jul 18, 2022
1 parent 4af30c2 commit c1d2086
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ describe('Communication Plugin', () => {
await saveButton.click();
await new Promise(resolve => setTimeout(resolve, 100)); // await animation

expect(parent.wizardUI.dialog).not.to.exist;
expect(element.doc.querySelector('Communication')).not.is.null;
expect(element.doc.querySelector('Communication > SubNetwork[name="Test"]')).to.exist;
});
Expand Down

0 comments on commit c1d2086

Please sign in to comment.