Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-1165

Expose custom fixture method

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: Testing

      Description

      When coding unit tests there is a common pattern of declaring a fixture and then wait for a flush.

      button = await fixture( 
         html` <nuxeo-move-content-to-coldstorage-button></nuxeo-move-content-to-coldstorage-button> `
      ); 
      
      await flush();

       
      We could factor this logic in order to avoid such verbose approach.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours
                  5h