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

Create 'preview' feature tests

    XMLWordPrintable

    Details

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

      Description

      Create the following tests:

      Feature: Content Preview
      
        Document and attachment previews are well displayed on document view and actions
      
        Background:
          Given I login as “Member User”
          And a Folder with Documents and Read/Write permission
      
        Scenario Outline: File preview on upload
          Given I have a File document
          When I upload a <mimetype> file as main blob
          Then I see a <type> preview
          And preview content height and width fills document preview area
      
        Examples:
          | mimetype         | type             |
          | image.*          | image viewer     |
          | video.*          | video viewer     |
          | audio.*          | audio            |
          | text/*           | markdown         |
          | application/pdf  | pdf viewer       |
          | *                | iframe fallback  |
      
        Scenario: Office document preview on upload
          Given I have a File document
          When I upload a Libre Office file as main blob
          Then Document view is refreshed
          And I see a PDF preview of the file uploaded
      
        Scenario Outline: Attachment preview
          Given I have a document with attachments
          Add a <mimetype> file as attachment
          When I click the 'preview' action
          Then a dialog opens
          And I see a <type> preview
          And the preview content fill the dialog
      
          Examples:
            | mimetype         | type             |
            | image.*          | image viewer     |
            | video.*          | video viewer     |
            | audio.*          | audio            |
            | text/*           | markdown         |
            | application/pdf  | pdf viewer       |
            | *                | iframe fallback  |
      
        Scenario Outline: DAM document preview
          Given I create a <type> document
          And add file content
          When I open the document
          Then I see a <preview>
          And preview content height and width fills document preview area
      
          Examples:
            | type    | preview       |
            | Picture | image viewer  |
            | Video   | video viewer  |
            | Audio   | audio preview |
      
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: