Skip to content

Commit 0d44f71

Browse files
author
Dennis Labordus
committed
Fixed tests.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent 383ef5e commit 0d44f71

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

test/integration/__snapshots__/open-scd.test.snap.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,24 @@ snapshots["open-scd looks like its snapshot"] =
125125
Redo
126126
</span>
127127
</mwc-list-item>
128+
<mwc-list-item
129+
aria-disabled="true"
130+
class="validator"
131+
disabled=""
132+
graphic="icon"
133+
iconid="rule_folder"
134+
mwc-list-item=""
135+
tabindex="-1"
136+
>
137+
<mwc-icon slot="graphic">
138+
rule_folder
139+
</mwc-icon>
140+
<span>
141+
Validate using OCL
142+
</span>
143+
<mwc-linear-progress indeterminate="">
144+
</mwc-linear-progress>
145+
</mwc-list-item>
128146
<mwc-list-item
129147
aria-disabled="true"
130148
class="validator"
@@ -854,6 +872,22 @@ snapshots["open-scd looks like its snapshot"] =
854872
role="separator"
855873
>
856874
</li>
875+
<mwc-check-list-item
876+
aria-disabled="false"
877+
class="official"
878+
graphic="control"
879+
hasmeta=""
880+
left=""
881+
mwc-list-item=""
882+
selected=""
883+
tabindex="-1"
884+
value="/src/validators/ValidateSchemaWithCompas.js"
885+
>
886+
<mwc-icon slot="meta">
887+
rule_folder
888+
</mwc-icon>
889+
Validate using OCL
890+
</mwc-check-list-item>
857891
<mwc-check-list-item
858892
aria-disabled="false"
859893
class="official"

test/unit/Plugging.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,15 @@ describe('PluggingElement', () => {
168168
).to.have.property('position');
169169
});
170170
it('adds a new validator kind plugin on add button click', async () => {
171-
expect(element.validators).to.have.lengthOf(2);
171+
expect(element.validators).to.have.lengthOf(3);
172172
src.value = 'http://example.com/plugin.js';
173173
name.value = 'testName';
174174
validatorKindOption.click();
175175
await src.updateComplete;
176176
await name.updateComplete;
177177
primaryAction.click();
178178
await element.updateComplete;
179-
expect(element.validators).to.have.lengthOf(3);
179+
expect(element.validators).to.have.lengthOf(4);
180180
});
181181
});
182182
});

0 commit comments

Comments
 (0)