FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnative/tests/e2e/flows/components/modal.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
/
modal.yaml
Copy path
More file actions
More file actions
Latest commit
History
History
History
69 lines (69 loc) · 1.95 KB
Breadcrumbs
pythonnative
/
tests
/
e2e
/
flows
/
components
/
modal.yaml
Copy path
File metadata and controls
69 lines (69 loc) · 1.95 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#
Tests Modal opens and closes, shows its content again when reopened,
#
on_show and on_dismiss fire once per presentation, and on_request_close
#
fires once for the Android back button or the iOS sheet pull-down.
#
#
Demo screen: examples/e2e-suite/app/screens/components/modal.py
#
Source under test: src/pythonnative/components/overlays.py :: Modal
appId
:
${APP_ID}
---
-
runFlow
:
file
:
../../helpers/open_demo.yaml
env
:
CATEGORY
:
Components
DEMO_TITLE
:
Modal
-
assertVisible
:
"
Modal: closed
"
-
assertVisible
:
"
Show count: 0
"
-
assertVisible
:
"
Dismiss count: 0
"
-
assertVisible
:
"
Request close: 0
"
-
tapOn
:
"
Open modal
"
-
extendedWaitUntil
:
visible
:
"
Modal body text
"
timeout
:
10000
-
tapOn
:
"
Close modal
"
-
extendedWaitUntil
:
notVisible
:
"
Modal body text
"
timeout
:
10000
-
assertVisible
:
"
Modal: closed
"
#
on_show and on_dismiss fired exactly once for the presentation above.
-
assertVisible
:
"
Show count: 1
"
-
assertVisible
:
"
Dismiss count: 1
"
#
A reopened modal shows its content again.
-
tapOn
:
"
Open modal
"
-
extendedWaitUntil
:
visible
:
"
Modal body text
"
timeout
:
10000
-
tapOn
:
"
Close modal
"
-
extendedWaitUntil
:
notVisible
:
"
Modal body text
"
timeout
:
10000
-
assertVisible
:
"
Show count: 2
"
-
assertVisible
:
"
Dismiss count: 2
"
#
on_request_close: the Android back button and the iOS sheet pull-down
#
each ask once; the demo answers by closing the modal.
-
tapOn
:
"
Open modal
"
-
extendedWaitUntil
:
visible
:
"
Modal body text
"
timeout
:
10000
-
runFlow
:
when
:
platform
:
Android
commands
:
-
back
-
runFlow
:
when
:
platform
:
iOS
commands
:
-
swipe
:
start
:
"
50%, 12%
"
end
:
"
50%, 85%
"
duration
:
900
-
extendedWaitUntil
:
notVisible
:
"
Modal body text
"
timeout
:
10000
-
assertVisible
:
"
Request close: 1
"
-
assertVisible
:
"
Show count: 3
"
-
assertVisible
:
"
Dismiss count: 3
"
-
runFlow
:
file
:
../../helpers/close_demo.yaml
env
:
CATEGORY
:
Components
Back
|
FazBrowse Home
|
New Git URL