File tree Expand file tree Collapse file tree 5 files changed +15
-28
lines changed
integration/__snapshots__ Expand file tree Collapse file tree 5 files changed +15
-28
lines changed Original file line number Diff line number Diff line change @@ -168,10 +168,10 @@ export const officialPlugins = [
168
168
position : 'top' ,
169
169
} ,
170
170
{
171
- name : '[WIP] Validate OCL' ,
171
+ name : '[WIP] Validate using OCL' ,
172
172
src : '/src/validators/CompasValidateSchema.js' ,
173
173
icon : 'rule_folder' ,
174
- default : true ,
174
+ default : false ,
175
175
kind : 'validator' ,
176
176
} ,
177
177
{
Original file line number Diff line number Diff line change @@ -148,8 +148,7 @@ export function Hosting<
148
148
)
149
149
) ;
150
150
} ,
151
- disabled : ( ) : boolean =>
152
- this . doc === null || plugin . name . includes ( '[WIP]' ) ,
151
+ disabled : ( ) : boolean => this . doc === null ,
153
152
content : plugin . content ,
154
153
kind : 'validator' ,
155
154
} )
Original file line number Diff line number Diff line change @@ -458,12 +458,15 @@ export function Plugging<TBase extends new (...args: any[]) => EditingElement>(
458
458
value ="${ plugin . src } "
459
459
?selected =${ plugin . installed }
460
460
hasMeta
461
+ ?disabled =${ plugin . name . startsWith ( '[WIP]' ) }
461
462
left
462
463
>
463
464
< mwc-icon slot ="meta "
464
465
> ${ plugin . icon || pluginIcons [ plugin . kind ] } </ mwc-icon
465
466
>
466
- ${ plugin . name }
467
+ ${ plugin . name . startsWith ( '[WIP]' )
468
+ ? html `[WIP] < strike > ${ plugin . name . substring ( 6 ) } </ strike > `
469
+ : plugin . name }
467
470
</ mwc-check-list-item > `
468
471
) }
469
472
` ;
Original file line number Diff line number Diff line change @@ -165,24 +165,6 @@ snapshots["open-scd looks like its snapshot"] =
165
165
Redo
166
166
</span>
167
167
</mwc-list-item>
168
- <mwc-list-item
169
- aria-disabled="true"
170
- class="validator"
171
- disabled=""
172
- graphic="icon"
173
- iconid="rule_folder"
174
- mwc-list-item=""
175
- tabindex="-1"
176
- >
177
- <mwc-icon slot="graphic">
178
- rule_folder
179
- </mwc-icon>
180
- <span>
181
- [WIP] Validate OCL
182
- </span>
183
- </mwc-list-item>
184
- <oscd-plugine36e411de62aaf96 class="plugin validator">
185
- </oscd-plugine36e411de62aaf96>
186
168
<mwc-list-item
187
169
aria-disabled="true"
188
170
class="validator"
@@ -1122,20 +1104,23 @@ snapshots["open-scd looks like its snapshot"] =
1122
1104
>
1123
1105
</li>
1124
1106
<mwc-check-list-item
1125
- aria-disabled="false "
1107
+ aria-disabled="true "
1126
1108
class="official"
1109
+ disabled=""
1127
1110
graphic="control"
1128
1111
hasmeta=""
1129
1112
left=""
1130
1113
mwc-list-item=""
1131
- selected=""
1132
1114
tabindex="-1"
1133
1115
value="/src/validators/CompasValidateSchema.js"
1134
1116
>
1135
1117
<mwc-icon slot="meta">
1136
1118
rule_folder
1137
1119
</mwc-icon>
1138
- [WIP] Validate OCL
1120
+ [WIP]
1121
+ <strike>
1122
+ Validate using OCL
1123
+ </strike>
1139
1124
</mwc-check-list-item>
1140
1125
<mwc-check-list-item
1141
1126
aria-disabled="false"
Original file line number Diff line number Diff line change @@ -169,15 +169,15 @@ describe('PluggingElement', () => {
169
169
) . to . have . property ( 'position' ) ;
170
170
} ) ;
171
171
it ( 'adds a new validator kind plugin on add button click' , async ( ) => {
172
- expect ( element . validators ) . to . have . lengthOf ( 3 ) ;
172
+ expect ( element . validators ) . to . have . lengthOf ( 2 ) ;
173
173
src . value = 'http://example.com/plugin.js' ;
174
174
name . value = 'testName' ;
175
175
validatorKindOption . click ( ) ;
176
176
await src . updateComplete ;
177
177
await name . updateComplete ;
178
178
primaryAction . click ( ) ;
179
179
await element . updateComplete ;
180
- expect ( element . validators ) . to . have . lengthOf ( 4 ) ;
180
+ expect ( element . validators ) . to . have . lengthOf ( 3 ) ;
181
181
} ) ;
182
182
} ) ;
183
183
} ) ;
You can’t perform that action at this time.
0 commit comments