Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnMarieW committed May 15, 2024
1 parent 6659085 commit ba27733
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions components/dash-core-components/src/components/Loading.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,19 @@ const Loading = ({

return (
<div
style={{position: 'relative', ...parent_style}}
className={parent_className}
style={
showSpinner
? {position: 'relative', ...parent_style}
: parent_style
}
>
<div
className={parent_className}
style={
showSpinner ? {visibility: 'hidden', ...overlay_style} : {}
showSpinner
? {
visibility: 'hidden',
...overlay_style,
...parent_style,
}
: parent_style
}
>
{children}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def updateDiv(n_clicks):
dash_dcc.find_element(".loading .dash-spinner")
# unlike the default, the content should be visible
dash_dcc.wait_for_text_to_equal("#div-1", "content")
dash_dcc.wait_for_style_to_equal("#root > div", "opacity", "0.5")
dash_dcc.wait_for_style_to_equal("#root > div > div", "opacity", "0.5")

dash_dcc.wait_for_text_to_equal("#div-1", "changed")

Expand Down

0 comments on commit ba27733

Please sign in to comment.