Skip to content

Commit eaec04f

Browse files
author
BryanSchroeder
committed
adjusting browser for percy snapshot to append async to the snapshot name to note if the image is async vs default
1 parent 37d649c commit eaec04f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dash/testing/browser.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ def percy_snapshot(
159159
"""
160160
if widths is None:
161161
widths = [1280]
162+
try:
163+
import asgiref # pylint: disable=unused-import, # noqa: F401
164+
name += '_async'
165+
except:
166+
pass
162167

163168
logger.info("taking snapshot name => %s", name)
164169
try:

0 commit comments

Comments
 (0)