Implemented comprehensive bulk operations for BLE sensor management to improve efficiency when working with multiple sensors simultaneously. Features Added: - bulkDisconnect: Disconnect multiple sensors at once - bulkReboot: Reboot multiple sensors sequentially - bulkSetWiFi: Configure WiFi for multiple sensors with progress tracking Implementation Details: - Added BulkOperationResult and BulkWiFiResult types to track operation outcomes - Implemented bulk operations in both RealBLEManager and MockBLEManager - Exposed bulk operations through BLEContext for easy UI integration - Sequential processing ensures reliable operation completion - Progress callbacks for real-time UI updates during bulk operations Testing: - Added comprehensive test suite with 14 test cases - Tests cover success scenarios, error handling, and edge cases - All tests passing with appropriate timeout configurations - Verified both individual and sequential bulk operations Technical Notes: - Bulk operations maintain device connection state consistency - Error handling allows graceful continuation despite individual failures - MockBLEManager includes realistic delays for testing - Integration with existing BLE service architecture preserved 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
appId: com.wellnuo.app
|
|
---
|
|
# WellNuo Add Beneficiary (Loved One)
|
|
# Screen title: "Add a Loved One"
|
|
|
|
# Should be on add loved one screen
|
|
- assertVisible:
|
|
text: "Add a Loved One"
|
|
optional: true
|
|
|
|
- takeScreenshot: "08-add-beneficiary-screen"
|
|
|
|
# Screen has only ONE "Name" field, not First/Last name
|
|
# The Name input field is at approximately 45% down from top
|
|
# Must tap ON the input field (not label) to focus it
|
|
- tapOn:
|
|
point: "50%,46%"
|
|
|
|
# Wait for keyboard to appear
|
|
- extendedWaitUntil:
|
|
visible: ".*"
|
|
timeout: 1000
|
|
|
|
# Enter beneficiary name
|
|
- inputText: "Grandma"
|
|
|
|
- takeScreenshot: "09-beneficiary-name-entered"
|
|
|
|
# Hide keyboard to reveal Continue button
|
|
- hideKeyboard
|
|
|
|
# Wait for Continue to be visible
|
|
- extendedWaitUntil:
|
|
visible: "Continue"
|
|
timeout: 3000
|
|
|
|
# Tap Continue button
|
|
- tapOn:
|
|
text: "Continue"
|
|
|
|
# Wait for purchase/Get Started screen
|
|
# Screen shows "Get Started" with $399 WellNuo Starter Kit
|
|
- extendedWaitUntil:
|
|
visible: "Get Started"
|
|
timeout: 10000
|
|
|
|
- takeScreenshot: "10-after-add-beneficiary"
|