mirror of
https://github.com/NationalSecurityAgency/skills-docs.git
synced 2026-11-07 06:05:59 -10:00
#359 - documented admin skill tag management pages
This commit is contained in:
1 parent
7090f3eb51
commit
030e0c829c
5 files changed
+96
No files matched your search
@@ -761,6 +761,78 @@ context('Admin: Generate Screenshots', () => {
|
||||
|
||||
})
|
||||
|
||||
Cypress.Commands.add('deleteSkillTag', (tagId, projectId = 'movies') => {
|
||||
cy.request('DELETE', `/admin/projects/${projectId}/skills/tag`, {
|
||||
removeTagFully: true,
|
||||
retainTag: false,
|
||||
skillIds: [],
|
||||
tagId: tagId
|
||||
});
|
||||
});
|
||||
|
||||
Cypress.Commands.add('selectSkill', (selector, skillId, searchString = '', projId='movies') => {
|
||||
cy.get(selector).blur({force: true})
|
||||
cy.get(selector).click()
|
||||
if (searchString) {
|
||||
cy.get(selector).type(`{selectall}${searchString}`)
|
||||
}
|
||||
cy.get(`[data-cy="skillsSelectionItem-${projId}-${skillId}"]`).click()
|
||||
})
|
||||
|
||||
it('page - skill tags', () => {
|
||||
cy.visit('/administrator/projects/movies/skill-tags/');
|
||||
cy.get('[data-cy="noContent"]').contains('No Tags Yet')
|
||||
|
||||
cy.get('[data-cy="btn_Skill Tags"]').click()
|
||||
cy.get('[data-cy="tagValue"]').should("have.focus")
|
||||
cy.get('[data-cy="saveDialogBtn"]').should('be.disabled')
|
||||
cy.get('[data-cy="tagValue"]').should('be.visible')
|
||||
cy.get('[data-cy="tagValue"]').type('Despicable Me Collection');
|
||||
cy.get('[data-cy="saveDialogBtn"]').should('be.enabled')
|
||||
cy.get('[data-cy="saveDialogBtn"]').click();
|
||||
|
||||
cy.get('[data-cy="noContent"]').should('not.exist');
|
||||
|
||||
cy.get('[data-cy="btn_Skill Tags"]').click()
|
||||
cy.get('[data-cy="tagValue"]').should("have.focus")
|
||||
cy.get('[data-cy="saveDialogBtn"]').should('be.disabled')
|
||||
cy.get('[data-cy="tagValue"]').should('be.visible')
|
||||
cy.get('[data-cy="tagValue"]').type('The Twilight Collection');
|
||||
cy.get('[data-cy="saveDialogBtn"]').should('be.enabled')
|
||||
cy.get('[data-cy="saveDialogBtn"]').click();
|
||||
|
||||
cy.get('[data-cy="btn_Skill Tags"]').click()
|
||||
cy.get('[data-cy="tagValue"]').should("have.focus")
|
||||
cy.get('[data-cy="saveDialogBtn"]').should('be.disabled')
|
||||
cy.get('[data-cy="tagValue"]').should('be.visible')
|
||||
cy.get('[data-cy="tagValue"]').type('Harry Potter Collection');
|
||||
cy.get('[data-cy="saveDialogBtn"]').should('be.enabled')
|
||||
cy.get('[data-cy="saveDialogBtn"]').click();
|
||||
|
||||
cy.snap('page-skill-tags')
|
||||
|
||||
cy.visit('/administrator/projects/movies/skill-tags/harrypottercollection');
|
||||
cy.get('[data-cy="noContent"]').contains('No Skills Added Yet...')
|
||||
cy.selectSkill('[data-cy="skillsSelector"]', 'HarryPotterandthePhilosophersStone');
|
||||
cy.selectSkill('[data-cy="skillsSelector"]', 'HarryPotterandtheChamberofSecrets');
|
||||
cy.selectSkill('[data-cy="skillsSelector"]', 'HarryPotterandthePrisonerofAzkaban');
|
||||
cy.selectSkill('[data-cy="skillsSelector"]', 'HarryPotterandtheDeathlyHallowsPart2');
|
||||
cy.selectSkill('[data-cy="skillsSelector"]', 'HarryPotterandtheGobletofFire');
|
||||
cy.selectSkill('[data-cy="skillsSelector"]', 'HarryPotterandtheDeathlyHallowsPart1');
|
||||
cy.selectSkill('[data-cy="skillsSelector"]', 'HarryPotterandtheOrderofthePhoenix');
|
||||
cy.selectSkill('[data-cy="skillsSelector"]', 'HarryPotterandtheHalfBloodPrince');
|
||||
|
||||
cy.snap('page-skill-tag')
|
||||
|
||||
cy.deleteSkillTag('harrypottercollection')
|
||||
cy.deleteSkillTag('despicablemecollection')
|
||||
cy.deleteSkillTag('thetwilightcollection')
|
||||
})
|
||||
|
||||
// it.only('page - single skill tag', () => {
|
||||
// cy.snap('page-skill-tag.png')
|
||||
// })
|
||||
|
||||
it('page - admin groups', () => {
|
||||
cy.visit('/administrator/adminGroups/FancyGroup')
|
||||
cy.get('[data-cy="roleManagerTable"] [data-cy="skillsBTableTotalRows"]').should('have.text', '3')
|
||||
|
||||
@@ -124,6 +124,7 @@ sidebar = sidebar.concat([{
|
||||
'/dashboard/user-guide/subjects',
|
||||
'/dashboard/user-guide/skills',
|
||||
'/dashboard/user-guide/self-reporting',
|
||||
'/dashboard/user-guide/skills-tags',
|
||||
'/dashboard/user-guide/skills-catalog',
|
||||
'/dashboard/user-guide/skills-groups',
|
||||
'/dashboard/user-guide/rich-text-editor',
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
# Skill Tags
|
||||
|
||||
Skill tagging is a feature that allows administrators to add one or more custom "tags" to skills.
|
||||
Adding tags to skills can help to categorize and group skills, giving users another way to search or filter a particular set of skills.
|
||||
Skill tags are visualized in the Skills Display to give users consuming the training another way to comprehend, categorize and filter skills.
|
||||
|
||||
|
||||
::: note Dedicated Skill Tags Page
|
||||
There is now a dedicated Skill Tags page that provides a focused view for managing all skill tags across your project. There is also a dedicated
|
||||
Single Skill Tag management page that enables administrators to manage tagged skills with the particular tag
|
||||
:::
|
||||
|
||||
## Skill Tags Management Page
|
||||
|
||||

|
||||
|
||||
To manage skill tags access your project, navigate to ``Project -> Skill Tags``. From this page you can view all skill tags, create new skill tags and delete existing tags.
|
||||
|
||||
## Single Skill Tag Management Page
|
||||
|
||||
Clicking on a skill tag name from the Skill Tags management page will bring you to the Single Skill Tag management page, where you can choose which skill(s) should include this tag, as well as update the Tag Value and Tag ID.
|
||||

|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 198 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 170 KiB |
Reference in new issue
Block a user