FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnative/tests/e2e/flows/hooks/use_back_handler.yaml at main · pythonnative/pythonnative · GitHub
pythonnative
pythonnative
Repository navigation
Code
Issues
11
(11)
Pull requests
5
(5)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnative
/
tests
/
e2e
/
flows
/
hooks
/
use_back_handler.yaml
Copy path
More file actions
More file actions
Latest commit
History
History
History
35 lines (35 loc) · 1.07 KB
Breadcrumbs
pythonnative
/
tests
/
e2e
/
flows
/
hooks
/
use_back_handler.yaml
Copy path
File metadata and controls
35 lines (35 loc) · 1.07 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
Tests use_back_handler intercepts the Android hardware back press.
#
#
Demo screen: examples/e2e-suite/app/screens/hooks/use_back_handler.py
#
Source under test: src/pythonnative/hooks.py :: use_back_handler
#
#
The device-back steps are Android-only: iOS has no system back
#
button, so there the flow just verifies the demo renders and the
#
guard state toggles.
appId
:
${APP_ID}
---
-
runFlow
:
file
:
../../helpers/open_demo.yaml
env
:
CATEGORY
:
Hooks
DEMO_TITLE
:
use_back_handler
-
assertVisible
:
"
Guard armed: no
"
-
assertVisible
:
"
Back presses intercepted: 0
"
-
tapOn
:
"
Arm guard
"
-
assertVisible
:
"
Guard armed: yes
"
-
runFlow
:
when
:
platform
:
Android
commands
:
#
With the guard armed, device back must NOT leave the screen.
-
back
-
assertVisible
:
"
Back presses intercepted: 1
"
-
assertVisible
:
"
Demo: use_back_handler
"
-
back
-
assertVisible
:
"
Back presses intercepted: 2
"
-
tapOn
:
"
Disarm guard
"
-
assertVisible
:
"
Guard armed: no
"
-
runFlow
:
file
:
../../helpers/close_demo.yaml
env
:
CATEGORY
:
Hooks
Back
|
FazBrowse Home
|
New Git URL