FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnative/tests/e2e/flows/components/checkbox.yaml at main · pythonnative/pythonnative · GitHub
pythonnative
pythonnative
Repository navigation
Code
Issues
11
(11)
Pull requests
4
(4)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnative
/
tests
/
e2e
/
flows
/
components
/
checkbox.yaml
Copy path
More file actions
More file actions
Latest commit
History
History
History
31 lines (31 loc) · 995 Bytes
Breadcrumbs
pythonnative
/
tests
/
e2e
/
flows
/
components
/
checkbox.yaml
Copy path
File metadata and controls
31 lines (31 loc) · 995 Bytes
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
#
Tests Checkbox flips between ON and OFF.
#
#
The native box is tapped directly (via its "Accept" label) before
#
the proxy buttons: the direct tap exercises the platform's toggle
#
event wiring (raw target-action on iOS, OnCheckedChangeListener on
#
Android), which the buttons bypass entirely.
#
#
Demo screen: examples/e2e-suite/app/screens/components/checkbox.py
#
Source under test: src/pythonnative/components/controls.py :: Checkbox
appId
:
${APP_ID}
---
-
runFlow
:
file
:
../../helpers/open_demo.yaml
env
:
CATEGORY
:
Components
DEMO_TITLE
:
Checkbox
-
assertVisible
:
"
Checked: OFF
"
#
Real interaction: tap the native checkbox itself.
-
tapOn
:
"
Accept
"
-
assertVisible
:
"
Checked: ON
"
-
tapOn
:
"
Accept
"
-
assertVisible
:
"
Checked: OFF
"
#
Programmatic path: buttons drive the same state.
-
tapOn
:
"
Check
"
-
assertVisible
:
"
Checked: ON
"
-
tapOn
:
"
Uncheck
"
-
assertVisible
:
"
Checked: OFF
"
-
runFlow
:
file
:
../../helpers/close_demo.yaml
env
:
CATEGORY
:
Components
Back
|
FazBrowse Home
|
New Git URL