Skip to content

Commit 278fd2d

Browse files
committed
Update classname for testing
1 parent 2abd161 commit 278fd2d

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

dash/dash-renderer/src/components/error/menu/DebugMenu.react.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ const MenuContent = ({
3131
: OffIcon
3232
: ClockIcon;
3333

34+
const status = hotReload
35+
? connected
36+
? 'available'
37+
: 'unavailable'
38+
: 'cold';
39+
3440
return (
3541
<div className='dash-debug-menu__content'>
3642
<button
@@ -65,7 +71,9 @@ const MenuContent = ({
6571
<div className='dash-debug-menu__divider' />
6672
<VersionInfo config={config} />
6773
<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+
>
6977
Server
7078
<_StatusIcon className='dash-debug-menu__icon' />
7179
</div>

tests/integration/devtools/test_hot_reload.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def new_text(n):
108108

109109
# Now check the server status indicator functionality
110110

111+
dash_duo_mp.find_element(".dash-debug-menu").click()
111112
dash_duo_mp.find_element(".dash-debug-menu__button--available")
112113
sleep(1) # wait for opening animation
113114
dash_duo_mp.percy_snapshot(name="hot-reload-available")
@@ -118,6 +119,8 @@ def new_text(n):
118119
dash_duo_mp.wait_for_no_elements(".dash-fe-error__title")
119120
dash_duo_mp.percy_snapshot(name="hot-reload-unavailable")
120121

122+
dash_duo_mp.find_element(".dash-debug-menu").click()
123+
sleep(1) # wait for opening animation
121124
dash_duo_mp.find_element(".dash-debug-disconnected")
122125
dash_duo_mp.percy_snapshot(name="hot-reload-unavailable-small")
123126

0 commit comments

Comments
 (0)