diff --git a/lib/osf-components/addon/components/node-card/template.hbs b/lib/osf-components/addon/components/node-card/template.hbs index 6abbf9e90b..59a124100c 100644 --- a/lib/osf-components/addon/components/node-card/template.hbs +++ b/lib/osf-components/addon/components/node-card/template.hbs @@ -80,7 +80,9 @@ {{/if}} {{/if}} - {{node-card/node-icon category=@node.category}} + {{#unless @node.isRegistration}} + {{node-card/node-icon category=@node.category}} + {{/unless}} {{/if}} {{/let}} - - - + {{#unless this.hideCategories}} + + + + {{/unless}}
{{t 'registries.registration_metadata.affiliated_institutions'}} diff --git a/tests/engines/registries/acceptance/branded/new-test.ts b/tests/engines/registries/acceptance/branded/new-test.ts index 543c18ad5a..77446c55ae 100644 --- a/tests/engines/registries/acceptance/branded/new-test.ts +++ b/tests/engines/registries/acceptance/branded/new-test.ts @@ -114,6 +114,5 @@ module('Registries | Acceptance | branded.new', hooks => { assert.dom('[data-test-contributor-link]').exists({ count: 1 }, 'Only one contributor'); assert.dom('[data-test-contributor-permission]').containsText('Administrator', 'user is admin'); assert.dom('[data-test-contributor-citation]').containsText('Yes', 'user is bibliographic'); - assert.dom('[data-test-option="uncategorized"]').exists('Category is uncategorized by default'); }); }); diff --git a/tests/engines/registries/acceptance/draft/draft-test.ts b/tests/engines/registries/acceptance/draft/draft-test.ts index ed831697f5..d27c1e590d 100644 --- a/tests/engines/registries/acceptance/draft/draft-test.ts +++ b/tests/engines/registries/acceptance/draft/draft-test.ts @@ -945,16 +945,6 @@ module('Registries | Acceptance | draft form', hooks => { assert.dom('[data-test-validation-errors="description"]') .exists('error in description appears after removing valid string to blank string'); - // Choose category and add a tag - await click('[data-test-metadata-category] > div'); - await percySnapshot('Registries | Acceptance | draft form | metadata editing | metadata: categories opened'); - assert.dom('[data-option-index="1"]').containsText('Other'); - await click('[data-option-index="1"]'); - - await click('[data-test-metadata-tags]'); - await fillIn('[data-test-metadata-tags] input', 'ragtagbag'); - await triggerKeyEvent('[data-test-metadata-tags] input', 'keydown', 'Enter'); - // No errors for nodelicense fields assert.dom('[data-test-validation-errors="subjects"]') .doesNotExist('no error for required fields that user has yet to change: subjects'); @@ -970,12 +960,6 @@ module('Registries | Acceptance | draft form', hooks => { assert.dom('[data-test-validation-errors="subjects"]'); assert.dom('[data-test-validation-errors="license"]'); - // Category and tag added appear on review page - assert.dom('[data-test-review-response="category"]') - .containsText('Other', 'category that was selected in metadata page shows up in review'); - assert.dom('[data-test-tags-widget-tag="ragtagbag"]') - .exists('tag added in metadata shows up in review page'); - // Return to Metadata page and address errors for subjects and license await click('[data-test-link="metadata"]');