FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnative/tests/e2e/flows/navigation/tab_options.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
/
navigation
/
tab_options.yaml
Copy path
More file actions
More file actions
Latest commit
History
History
History
50 lines (50 loc) · 1.52 KB
Breadcrumbs
pythonnative
/
tests
/
e2e
/
flows
/
navigation
/
tab_options.yaml
Copy path
File metadata and controls
50 lines (50 loc) · 1.52 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
#
Tests Tab.Navigator(tab_bar_style=...) renders, tab_bar_visible=False hides
#
the bar while that tab is focused, and freeze_on_blur keeps a blurred tab
#
from re-rendering until it regains focus.
#
#
Demo screen: examples/e2e-suite/app/screens/navigation/tab_options.py
#
Source under test: src/pythonnative/navigation/navigators.py :: TabNavigator
appId
:
${APP_ID}
---
-
runFlow
:
file
:
../../helpers/open_demo.yaml
env
:
CATEGORY
:
Navigation
DEMO_TITLE
:
Tab options
-
extendedWaitUntil
:
visible
:
"
TabA body
"
timeout
:
30000
-
assertVisible
:
"
TabA last tick: 0
"
-
assertVisible
:
"
TabB last tick: 0
"
#
Drive the tab bar itself once so the styled native bar is exercised.
-
tapOn
:
"
TabB
"
-
extendedWaitUntil
:
visible
:
"
TabB body
"
timeout
:
10000
-
tapOn
:
"
Advance tick
"
-
assertVisible
:
"
Tick: 1
"
#
The focused plain tab follows the tick; the frozen, blurred TabA does not.
-
extendedWaitUntil
:
visible
:
"
TabB last tick: 1
"
timeout
:
10000
-
assertVisible
:
"
TabA last tick: 0
"
-
tapOn
:
"
Jump to TabA
"
-
extendedWaitUntil
:
visible
:
"
TabA last tick: 1
"
timeout
:
10000
#
tab_bar_visible=False: the bar (and its "TabB" item) disappears while
#
the Hidden tab is focused, then comes back.
-
tapOn
:
"
Jump to Hidden
"
-
extendedWaitUntil
:
visible
:
"
Hidden body
"
timeout
:
10000
-
assertNotVisible
:
"
TabB
"
-
tapOn
:
"
Jump to TabA
"
-
extendedWaitUntil
:
visible
:
"
TabA body
"
timeout
:
10000
-
assertVisible
:
"
TabB
"
-
runFlow
:
file
:
../../helpers/close_demo.yaml
env
:
CATEGORY
:
Navigation
Back
|
FazBrowse Home
|
New Git URL