61 lines
1.3 KiB
YAML
61 lines
1.3 KiB
YAML
appId: ${APP_ID || "in.freshyo.adminui"}
|
|
env:
|
|
APP_ID: ${APP_ID || "in.freshyo.adminui"}
|
|
STAFF_NAME: ${STAFF_NAME || ""}
|
|
STAFF_PASSWORD: ${STAFF_PASSWORD || ""}
|
|
PRODUCT_NAME: ${PRODUCT_NAME || "E2E Test Product"}
|
|
SLOT_DATE: ${SLOT_DATE || ""}
|
|
SLOT_HOUR: ${SLOT_HOUR || ""}
|
|
SLOT_MIN: ${SLOT_MIN || ""}
|
|
tags:
|
|
- slots
|
|
- smoke
|
|
---
|
|
- launchApp
|
|
- extendedWaitUntil:
|
|
visible:
|
|
id: 'login-name-input|add-product-menu-item'
|
|
timeout: 180000
|
|
- runFlow:
|
|
when:
|
|
visible:
|
|
id: login-name-input
|
|
commands:
|
|
- runFlow: subflows/login.yaml
|
|
|
|
- openLink: freshyoadmin://dashboard/slots/add
|
|
- extendedWaitUntil:
|
|
visible:
|
|
id: delivery-date-picker
|
|
timeout: 30000
|
|
|
|
- runFlow: subflows/set-slot-times.yaml
|
|
|
|
- scrollUntilVisible:
|
|
element:
|
|
id: slot-products-selector
|
|
direction: DOWN
|
|
- tapOn:
|
|
id: slot-products-selector
|
|
- tapOn:
|
|
id: slot-products-selector-search
|
|
- inputText: ${PRODUCT_NAME}
|
|
- hideKeyboard
|
|
- tapOn:
|
|
id: 'slot-products-selector-option-.*'
|
|
index: 0
|
|
- tapOn:
|
|
id: 'slot-products-selector-option-.*'
|
|
index: 1
|
|
- tapOn:
|
|
id: slot-products-selector-done
|
|
|
|
- scrollUntilVisible:
|
|
element:
|
|
id: create-slot-button
|
|
direction: DOWN
|
|
- tapOn:
|
|
id: create-slot-button
|
|
|
|
- assertVisible: 'Slot created successfully!'
|
|
- tapOn: 'OK'
|