File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
tests/integration/devtools Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,12 @@ const MenuContent = ({
31
31
: OffIcon
32
32
: ClockIcon ;
33
33
34
+ const status = hotReload
35
+ ? connected
36
+ ? 'available'
37
+ : 'unavailable'
38
+ : 'cold' ;
39
+
34
40
return (
35
41
< div className = 'dash-debug-menu__content' >
36
42
< button
@@ -65,7 +71,9 @@ const MenuContent = ({
65
71
< div className = 'dash-debug-menu__divider' />
66
72
< VersionInfo config = { config } />
67
73
< div className = 'dash-debug-menu__divider' />
68
- < div className = 'dash-debug-menu__status' >
74
+ < div
75
+ className = { `dash-debug-menu__status dash-debug-menu__button--${ status } ` }
76
+ >
69
77
Server
70
78
< _StatusIcon className = 'dash-debug-menu__icon' />
71
79
</ div >
Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ def new_text(n):
108
108
109
109
# Now check the server status indicator functionality
110
110
111
+ dash_duo_mp .find_element (".dash-debug-menu" ).click ()
111
112
dash_duo_mp .find_element (".dash-debug-menu__button--available" )
112
113
sleep (1 ) # wait for opening animation
113
114
dash_duo_mp .percy_snapshot (name = "hot-reload-available" )
@@ -118,6 +119,8 @@ def new_text(n):
118
119
dash_duo_mp .wait_for_no_elements (".dash-fe-error__title" )
119
120
dash_duo_mp .percy_snapshot (name = "hot-reload-unavailable" )
120
121
122
+ dash_duo_mp .find_element (".dash-debug-menu" ).click ()
123
+ sleep (1 ) # wait for opening animation
121
124
dash_duo_mp .find_element (".dash-debug-disconnected" )
122
125
dash_duo_mp .percy_snapshot (name = "hot-reload-unavailable-small" )
123
126
You can’t perform that action at this time.
0 commit comments