Skip to content

Commit 9b49946

Browse files
author
Dennis Labordus
committed
Fixed tests.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent d18abfe commit 9b49946

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ snapshots["open-scd looks like its snapshot"] =
641641
hasmeta=""
642642
left=""
643643
mwc-list-item=""
644+
selected=""
644645
tabindex="-1"
645646
value="/src/editors/IED.js"
646647
>
@@ -656,6 +657,7 @@ snapshots["open-scd looks like its snapshot"] =
656657
hasmeta=""
657658
left=""
658659
mwc-list-item=""
660+
selected=""
659661
tabindex="-1"
660662
value="/src/editors/SingleLineDiagram.js"
661663
>

test/unit/Plugging.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('PluggingElement', () => {
2222
});
2323

2424
it('stores default plugins on load', () =>
25-
expect(element).property('editors').to.have.lengthOf(4));
25+
expect(element).property('editors').to.have.lengthOf(6));
2626

2727
describe('plugin manager dialog', () => {
2828
let firstEditorPlugin: HTMLElement;
@@ -49,23 +49,23 @@ describe('PluggingElement', () => {
4949
it('disables deselected plugins', async () => {
5050
firstEditorPlugin.click();
5151
await element.updateComplete;
52-
expect(element).property('editors').to.have.lengthOf(3);
52+
expect(element).property('editors').to.have.lengthOf(5);
5353
});
5454

5555
it('enables selected plugins', async () => {
5656
(<HTMLElement>element.pluginList.firstElementChild).click();
5757
await element.updateComplete;
5858
(<HTMLElement>element.pluginList.firstElementChild).click();
5959
await element.updateComplete;
60-
expect(element).property('editors').to.have.lengthOf(4);
60+
expect(element).property('editors').to.have.lengthOf(6);
6161
});
6262

6363
it('resets plugins to default on reset button click', async () => {
6464
(<HTMLElement>element.pluginList.firstElementChild).click();
6565
await element.updateComplete;
6666
resetAction.click();
6767
await element.updateComplete;
68-
expect(element).property('editors').to.have.lengthOf(4);
68+
expect(element).property('editors').to.have.lengthOf(6);
6969
});
7070

7171
it('opens the custom plugin dialog on add button click', async () => {
@@ -139,7 +139,7 @@ describe('PluggingElement', () => {
139139
await name.updateComplete;
140140
primaryAction.click();
141141
await element.updateComplete;
142-
expect(element.editors).to.have.lengthOf(5);
142+
expect(element.editors).to.have.lengthOf(7);
143143
});
144144
it('adds a new menu kind plugin on add button click', async () => {
145145
const lengthMenuKindPlugins = element.menuEntries.length;

0 commit comments

Comments
 (0)