Skip to content

E2E Drawer tests

Brian Winkers edited this page May 26, 2022 · 8 revisions

This document will detail the cypress testing elements for the left drawer.

Left Drawer

Storage API Login

Test flow:

  1. Toggle the drawer open (draw-toggle-btn)
  2. Find the Storage API Login expansion item (drawer-storage-api-login-toggle-btn)
  3. Enter a unique nickname (drawer-storage-api-login-nickname-fld)
  4. Enter the default TachyonCMS Storage API address: http://localhost:3333 (drawer-storage-api-login-host-fld)
  5. Enter admin as the API Login (drawer-storage-api-login-user-fld)
  6. Enter TachyonCMS as the password. (drawer-storage-api-login-password-fld)
  7. Click "Submit" (drawer-storage-api-login-submit-btn)

Expected:

  1. The drawer shows the chosen nickname
  2. The main page has "Add Flow" available

Electron Local Directory

This is only testable when choosing Electron as the browser.

Test flow:

  1. Click on "Select a local directory" (drawer-open-local-directory-dialog)

Expected:

Create New Flow

  1. Toggle the new flow form in the drawer (drawer-new-flow-form-toggle-btn).
  2. Enter a unique flow name (drawer-new-flow-form-name-fld)
  3. Enter a unique flow title (drawer-new-flow-form-title-fld)
  4. Enter a flow note (drawer-new-flow-form-note-fld)
  5. Click "Open Flow" check box (drawer-new-flow-form-open-flow-checkbox)
  6. Click "Submit" (drawer-new-flow-form-submit-btn)