diff --git a/test/testfiles/lnodewizard.scd b/test/testfiles/lnodewizard.scd
index 19cd4f222a..86d836201d 100644
--- a/test/testfiles/lnodewizard.scd
+++ b/test/testfiles/lnodewizard.scd
@@ -37,7 +37,12 @@
-
+
+
+
+
+
+
diff --git a/test/unit/wizards/lnode.test.ts b/test/unit/wizards/lnode.test.ts
index d2f8ea29cc..5aaf91a315 100644
--- a/test/unit/wizards/lnode.test.ts
+++ b/test/unit/wizards/lnode.test.ts
@@ -179,16 +179,16 @@ describe('Wizards for LNode element', () => {
});
it('does set iedName, lnCalss, lnInst and lnType', async () => {
- listItems[4].selected = true;
+ listItems[2].selected = true;
await primaryAction.click();
expect(actionEvent).to.have.be.calledOnce;
const action = actionEvent.args[0][0].detail.action;
expect(action.new.element).to.have.attribute('iedName', 'None');
- expect(action.new.element).to.have.attribute('lnClass', 'CILO');
+ expect(action.new.element).to.have.attribute('lnClass', 'XCBR');
expect(action.new.element).to.have.attribute('lnInst', '1');
- expect(action.new.element).to.have.attribute('lnType', 'Dummy.CILO');
+ expect(action.new.element).to.have.attribute('lnType', 'Dummy.XCBR1');
});
it('does not set ldInst and prefix', async () => {
@@ -209,7 +209,7 @@ describe('Wizards for LNode element', () => {
expect(actionEvent).to.have.be.calledOnce;
const action = actionEvent.args[0][0].detail.action;
- expect(action.new.element).to.have.attribute('lnInst', '1');
+ expect(action.new.element).to.have.attribute('lnInst', '2');
});
it('makes sure that lnInst is unique if several LNodeType with same lnClass are selected', async () => {
@@ -221,8 +221,8 @@ describe('Wizards for LNode element', () => {
expect(actionEvent).to.have.be.calledTwice;
const action1 = actionEvent.args[0][0].detail.action;
const action2 = actionEvent.args[1][0].detail.action;
- expect(action1.new.element).to.have.attribute('lnInst', '1');
- expect(action2.new.element).to.have.attribute('lnInst', '2');
+ expect(action1.new.element).to.have.attribute('lnInst', '2');
+ expect(action2.new.element).to.have.attribute('lnInst', '4');
});
it('does add empty string to LNode with lnClass LLN0', async () => {