FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnative/tests/e2e/flows/hooks/use_theme.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_theme.yaml
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (23 loc) · 732 Bytes
Breadcrumbs
pythonnative
/
tests
/
e2e
/
flows
/
hooks
/
use_theme.yaml
Copy path
File metadata and controls
23 lines (23 loc) · 732 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
#
Tests use_theme resolves the provided theme from the color scheme.
#
#
Demo screen: examples/e2e-suite/app/screens/hooks/use_theme.py
#
Source under test: src/pythonnative/theme.py :: use_theme, use_styles
appId
:
${APP_ID}
---
-
runFlow
:
file
:
../../helpers/open_demo.yaml
env
:
CATEGORY
:
Hooks
DEMO_TITLE
:
use_theme
-
tapOn
:
"
Force light
"
-
assertVisible
:
"
Theme background: #FFFFFF
"
-
assertVisible
:
"
Theme primary: #007AFF
"
-
tapOn
:
"
Force dark
"
-
assertVisible
:
"
Theme background: #000000
"
-
assertVisible
:
"
Theme primary: #0A84FF
"
#
Restore the system setting so later flows see an unforced scheme.
-
tapOn
:
"
Follow system
"
-
runFlow
:
file
:
../../helpers/close_demo.yaml
env
:
CATEGORY
:
Hooks
Back
|
FazBrowse Home
|
New Git URL