-
Notifications
You must be signed in to change notification settings - Fork 2
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.
Test flow:
- Toggle the drawer open (draw-toggle-btn)
- Find the Storage API Login expansion item (drawer-storage-api-login-toggle-btn)
- Enter a unique nickname (drawer-storage-api-login-nickname-fld)
- Enter the default TachyonCMS Storage API address:
http://localhost:3333
(drawer-storage-api-login-host-fld) - Enter
admin
as the API Login (drawer-storage-api-login-user-fld) - Enter
TachyonCMS
as the password. (drawer-storage-api-login-password-fld) - Click "Submit" (drawer-storage-api-login-submit-btn)
Expected:
- The drawer shows the chosen nickname
- The main page has "Add Flow" available
This is only testable when choosing Electron as the browser.
Test flow:
- Click on "Select a local directory" (drawer-open-local-directory-dialog)
Expected:
- Toggle the new flow form in the drawer (drawer-new-flow-form-toggle-btn).
- Enter a unique flow name (drawer-new-flow-form-name-fld)
- Enter a unique flow title (drawer-new-flow-form-title-fld)
- Enter a flow note (drawer-new-flow-form-note-fld)
- Click "Open Flow" check box (drawer-new-flow-form-open-flow-checkbox)
- Click "Submit" (drawer-new-flow-form-submit-btn)