File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
crystal_toolkit/apps/examples/tests Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
- from typing import Protocol
3
+ from typing import Protocol , Union
4
4
5
5
import dash
6
6
7
+ ElemOrSelector = Union [str , dash .development .base_component .Component ]
8
+
7
9
8
10
class DashDuo (Protocol ):
9
- "The dash_duo pytest fixture lives in dash.testing.plugin.dash_duo."
11
+ """The dash_duo pytest fixture lives in dash.testing.plugin.dash_duo.
12
+
13
+ See https://dash.plotly.com/testing#browser-apis
14
+ """
10
15
11
16
def start_server (self , start_server ) -> None :
12
17
...
@@ -39,3 +44,14 @@ def take_snapshot(self, name: str) -> None:
39
44
40
45
def wait_for_page (self , url : str = None , timeout : int = 10 ) -> None :
41
46
...
47
+
48
+ def find_elements (
49
+ self , selector : str
50
+ ) -> list [dash .development .base_component .Component ]:
51
+ ...
52
+
53
+ def select_dcc_dropdown (
54
+ self , elem_or_selector : ElemOrSelector , value : str = None , index : int = None
55
+ ) -> None :
56
+ # https://github.com/plotly/dash/blob/04217e8/dash/testing/browser.py#L409
57
+ ...
You can’t perform that action at this time.
0 commit comments