Skip to content

Commit

Permalink
add tests on editors group participation
Browse files Browse the repository at this point in the history
  • Loading branch information
deniak committed Nov 13, 2023
1 parent 29c21e0 commit 9f075e9
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/data/TR/TRBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ export const rules = {
errors: ['headers.copyright.exception-no-html'],
},
],
'editor-participation': [
{
data: 'noEditorParticipation',
errors: ['headers.editor-participation.not-participating'],
},
],
},
style: {
...baseRules.style,
Expand Down
4 changes: 4 additions & 0 deletions test/doc-views/layout/spec.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@
<dt><span class="handlebars-data">{{dl.editorText}}</span>:</dt>
<dd class="p-author h-card vcard" data-editor-id="{{dl.editor.id}}">George Herald (WebFoo)
</dd>
{{#if dl.editor2.show}}
<dd class="p-author h-card vcard" data-editor-id="{{dl.editor2.id}}">John Doe (WebFoo)
</dd>
{{/if}}
{{/if}}

{{#config.isRescinded}}
Expand Down
15 changes: 15 additions & 0 deletions test/doc-views/specBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ export const data = {
show: true,
id: '3439',
},
editor2: {
show: false,
},
history: {
show: true,
showHref: true,
Expand Down Expand Up @@ -609,6 +612,18 @@ export function buildCommonViewData(base) {
},
},
},
'editor-participation': {
noEditorParticipation: {
...base,
dl: {
...base.dl,
editor2: {
show: true,
id: '3440',
},
},
},
},
shortname: {
shortnameLowercaseFP: {
...base,
Expand Down

0 comments on commit 9f075e9

Please sign in to comment.