diff --git a/test/unit/wizards/__snapshots__/sampledvaluecontrol.test.snap.js b/test/unit/wizards/__snapshots__/sampledvaluecontrol.test.snap.js
new file mode 100644
index 0000000000..4506ae2c61
--- /dev/null
+++ b/test/unit/wizards/__snapshots__/sampledvaluecontrol.test.snap.js
@@ -0,0 +1,52 @@
+/* @web/test-runner snapshot v1 */
+export const snapshots = {};
+
+snapshots["Wizards for SCL element SampledValueControl define a select wizard that looks like the latest snapshot"] =
+`
+
+
+
+
+ MSVCB01
+
+
+ IED2>>CBSW>MSVCB01
+
+
+
+
+ MSVCB01
+
+
+ IED3>>MU01>MSVCB01
+
+
+
+
+
+
+
+`;
+/* end snapshot Wizards for SCL element SampledValueControl define a select wizard that looks like the latest snapshot */
+
diff --git a/test/unit/wizards/sampledvaluecontrol.test.ts b/test/unit/wizards/sampledvaluecontrol.test.ts
new file mode 100644
index 0000000000..1e312d2e4f
--- /dev/null
+++ b/test/unit/wizards/sampledvaluecontrol.test.ts
@@ -0,0 +1,38 @@
+import { expect, fixture, html } from '@open-wc/testing';
+import { SinonSpy, spy } from 'sinon';
+
+import '../../mock-wizard.js';
+import { MockWizard } from '../../mock-wizard.js';
+
+import { selectSampledValueControlWizard } from '../../../src/wizards/sampledvaluecontrol.js';
+
+describe('Wizards for SCL element SampledValueControl', () => {
+ let doc: XMLDocument;
+ let element: MockWizard;
+
+ let actionEvent: SinonSpy;
+
+ beforeEach(async () => {
+ element = await fixture(html`
`);
+ doc = await fetch('test/testfiles/wizards/sampledvaluecontrol.scd')
+ .then(response => response.text())
+ .then(str => new DOMParser().parseFromString(str, 'application/xml'));
+
+ actionEvent = spy();
+ window.addEventListener('editor-action', actionEvent);
+ });
+
+ describe('define a select wizard that', () => {
+ beforeEach(async () => {
+ const wizard = selectSampledValueControlWizard(doc.documentElement);
+ element.workflow.push(wizard);
+ await element.requestUpdate();
+
+ await element.wizardUI.requestUpdate(); // make sure wizard is rendered
+ });
+
+ it('looks like the latest snapshot', async () => {
+ await expect(element.wizardUI.dialog).dom.to.equalSnapshot();
+ }).timeout(5000);
+ });
+});
diff --git a/test/unit/zeroline/__snapshots__/ied-editor.test.snap.js b/test/unit/zeroline/__snapshots__/ied-editor.test.snap.js
index 16b24bc053..c2ed11ba51 100644
--- a/test/unit/zeroline/__snapshots__/ied-editor.test.snap.js
+++ b/test/unit/zeroline/__snapshots__/ied-editor.test.snap.js
@@ -22,6 +22,14 @@ snapshots["A component to visualize SCL element IED looks like the latest snapsh
+
+
+
+
`;
/* end snapshot A component to visualize SCL element IED looks like the latest snapshot */
diff --git a/test/unit/zeroline/ied-editor.test.ts b/test/unit/zeroline/ied-editor.test.ts
index 5394545c32..3cc76d3d43 100644
--- a/test/unit/zeroline/ied-editor.test.ts
+++ b/test/unit/zeroline/ied-editor.test.ts
@@ -52,6 +52,17 @@ describe('A component to visualize SCL element IED', () => {
);
});
+ it('triggers select wizard for SampledValueControl element on action button click', async () => {
+ (
(
+ element.shadowRoot?.querySelector('mwc-fab[class="selectsmv"]')
+ )).click();
+
+ await element.requestUpdate();
+
+ expect(wizardEvent).to.have.be.calledOnce;
+ expect(wizardEvent.args[0][0].detail.wizard[0].title).to.contain('select');
+ });
+
it('triggers create wizard for ClientLN element on action button click', async () => {
((
element.shadowRoot?.querySelector('mwc-fab[class="connectreport"]')