47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
appId: ${APP_ID || "in.freshyo.adminui"}
|
|
env:
|
|
APP_ID: ${APP_ID || "in.freshyo.adminui"}
|
|
STAFF_NAME: ${STAFF_NAME || ""}
|
|
STAFF_PASSWORD: ${STAFF_PASSWORD || ""}
|
|
tags:
|
|
- dev
|
|
---
|
|
# Standalone flow: creates a slot (delivery +60m, freeze +50m) with NO products.
|
|
# Handy for validating the native date/time pickers in isolation.
|
|
#
|
|
# Run with:
|
|
# bash tests/e2e/run.sh dev/add-empty-slot.yaml
|
|
- launchApp
|
|
# Login only when the login screen is showing.
|
|
- runFlow:
|
|
when:
|
|
visible:
|
|
id: login-name-input
|
|
commands:
|
|
- runFlow: ../subflows/login.yaml
|
|
|
|
# Open the Slots list from the dashboard, then the create-slot screen.
|
|
- scrollUntilVisible:
|
|
element:
|
|
id: delivery-slots-menu-item
|
|
direction: DOWN
|
|
- tapOn:
|
|
id: delivery-slots-menu-item
|
|
- assertVisible:
|
|
id: add-slot-fab
|
|
- tapOn:
|
|
id: add-slot-fab
|
|
- assertVisible:
|
|
id: delivery-date-picker
|
|
|
|
- runFlow: ../subflows/set-slot-times.yaml
|
|
|
|
- scrollUntilVisible:
|
|
element:
|
|
id: create-slot-button
|
|
direction: DOWN
|
|
- tapOn:
|
|
id: create-slot-button
|
|
|
|
- assertVisible: 'Slot created successfully!'
|
|
- tapOn: 'OK'
|