- Fix saveWiFiPassword to use encrypted passwords map instead of decrypted - Fix getWiFiPassword to decrypt from encrypted storage - Fix test expectations for migration and encryption functions - Remove unused error variables to fix linting warnings - All 27 tests now passing with proper encryption/decryption flow The WiFi credentials cache feature was already implemented but had bugs where encrypted and decrypted password maps were being mixed. This commit ensures proper encryption is maintained throughout the storage lifecycle.
32 lines
652 B
YAML
32 lines
652 B
YAML
appId: com.wellnuo.app
|
|
---
|
|
# WellNuo Full Login Flow E2E Test
|
|
|
|
- launchApp:
|
|
clearState: true
|
|
|
|
# Ждём экран входа (используем regex)
|
|
- extendedWaitUntil:
|
|
visible: ".*[Ww]elcome.*|.*[Ee]mail.*"
|
|
timeout: 15000
|
|
|
|
- takeScreenshot: "01-welcome"
|
|
|
|
# Тап на поле email (placeholder)
|
|
- tapOn: ".*[Ee]nter.*email.*"
|
|
|
|
# Вводим тестовый email
|
|
- inputText: "test@example.com"
|
|
|
|
- takeScreenshot: "02-email-entered"
|
|
|
|
# Нажимаем Continue
|
|
- tapOn: "Continue"
|
|
|
|
# Ждём экран OTP или ошибку
|
|
- extendedWaitUntil:
|
|
visible: ".*"
|
|
timeout: 10000
|
|
|
|
- takeScreenshot: "03-after-continue"
|