Skip to content

Commit 5d219e0

Browse files
author
Rob Tjalma
authored
Merge pull request #110 from com-pas/fix-index-html
Added extra header to prevent caching of the index.html
2 parents 88e7326 + 9b49946 commit 5d219e0

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
<meta http-equiv="Cache-control" content="no-cache, no-store, must-revalidate">
88
<meta http-equiv="Pragma" content="no-cache">
9+
<meta http-equiv="Expires" content="0">
910

1011
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
1112
<meta name="Description" content="Open Substation Communication Designer is a bottom-up system configuration tool for projects described using IEC 61850-6 Edition 2 or greater.">

public/js/plugins.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ export const officialPlugins = [
1010
name: 'IED',
1111
src: '/src/editors/IED.js',
1212
icon: 'developer_board',
13-
default: false,
13+
default: true,
1414
kind: 'editor',
1515
},
1616
{
1717
name: 'Single Line Diagram',
1818
src: '/src/editors/SingleLineDiagram.js',
1919
icon: 'edit',
20-
default: false,
20+
default: true,
2121
kind: 'editor',
2222
},
2323
{

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)