Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-21367

Create 'Vocabularies' feature test

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WEBUI-0.9.0
    • Component/s: Web UI

      Description

      Create the following feature:

      Feature: Vocabularies
      
        Vocabularies can be added, edit and removed.
      
        Background:
          Given I login as 'Administrator'
          And I have a documents and read/write permissions
      
        Scenario: Vocabularies menu on drawer
          When I click the Administrator menu
          Then I see a Vocabularies item on the drawer
      
        Scenario: Vocabularies page
          When I click Vocabularies on Administration drawer
          Then I see a page with Vocabularies header
          And a panel with Vocabulary label
          And a select with "continent,country,l10ncoverage,language,l10nsubjects,subtopic,nature,inverse_predicates,predicates,topic" options
      
        Scenario Outline: Vocabularies tables
          Given I am on Vocabulary page
          When I select <vocabulary> option
          Then I see "+ Add Entry" button
          And a table with <headers> columns
          And on Action column a Edit and Delete Icon buttons
      
        Examples:
          | vocabulary          | headers                                                           |
          | continent           | "ID,Label,Obsolete,Ordering,Actions"                              |
          | country             | "Parent,ID,Label,Obsolete,Ordering,Actions"                       |
          | l10ncoverage        | "Parent,ID,English Label,French Label,Obsolete,Ordering,Actions"  |
          | language            | "ID,Label,Obsolete,Ordering,Actions"                              |
          | l10nsubjects        | "Parent,ID,English Label,French Label,Obsolete,Ordering,Actions"  |
          | subtopic            | "Parent,ID,Label,Obsolete,Ordering,Actions"                       |
          | nature              | "ID,Label,Obsolete,Ordering,Actions"                              |
          | inverse_predicates  | "ID,Label,Obsolete,Ordering,Actions"                              |
          | predicates          | "ID,Label,Obsolete,Ordering,Actions"                              |
          | topic               | "ID,Label,Obsolete,Ordering,Actions"                              |
      
        Scenario Outline: Add Entry form
          Given I am on Vocabulary page
          And I have selected <vocabulary>
          When I click '+ ADD ENTRY' button
          Then I see a dialog to Edit Vocabulary Entry
          And it has an empty form with <labels> labels with corresponding <widgets>
      
        Examples:
          | vocabulary          | labels                                                    | widgets                                   |
          | continent           | "ID,Label,Obsolete,Ordering"                              | "input,input,toggle,input"                |
          | country             | "Parent,ID,Label,Obsolete,Ordering"                       | "dropdown,input,input,toggle,input"       |
          | l10ncoverage        | "Parent,ID,English Label,French Label,Obsolete,Ordering"  | "dropdown,input,input,input,toggle,input" |
          | language            | "ID,Label,Obsolete,Ordering"                              | "input,input,toggle,input"                |
          | l10nsubjects        | "Parent,ID,English Label,French Label,Obsolete,Ordering"  | "dropdown,input,input,input,toggle,input" |
          | subtopic            | "Parent,ID,Label,Obsolete,Ordering"                       | "dropdown,input,input,toggle,input"       |
          | nature              | "ID,Label,Obsolete,Ordering"                              | "input,input,toggle,input"                |
          | inverse_predicates  | "ID,Label,Obsolete,Ordering"                              | "input,input,toggle,input"                |
          | predicates          | "ID,Label,Obsolete,Ordering"                              | "input,input,toggle,input"                |
          | topic               | "ID,Label,Obsolete,Ordering"                              | "input,input,toggle,input"                |
      
      
       Scenario: Add Nature Entry
         Given I am on Vocabulary page
         And I have selected 'Nature'
         And I clicked '+ ADD ENTRY' button
         When I add content "pressRelease,label.directory.nature.pressRelease,false,100"
         And click 'Save' button
         Then I get a toast with 'Entry created'
         And I see that entry on Nature select on edit layout
      
       Scenario: Reorder Nature Entry
         Given I am on Vocabulary page
         And I have selected 'Nature'
         When I click 'Edit' button on 'email'
         And change 'Ordering' value to '1'
         And click 'Save' button
         Then I get a toast with 'Entry edited'
         And I see that entry on top of Nature select on edit layout 
      
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: