Skip to content

Commit c94b1ac

Browse files
author
Xing Han Lu
committed
Add explanation about test cases
1 parent 57d31df commit c94b1ac

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_percy_snapshot.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@
99

1010

1111
class Tests(IntegrationTests):
12+
"""
13+
In order to render snapshots, Percy collects the DOM of the project and
14+
uses a custom rendering method, different from Selenium. Therefore, it
15+
is unable to render Canvas elements, so can't render Cytoscape charts
16+
directly.
17+
18+
Instead, we use Selenium webdrivers to automatically screenshot each of
19+
the apps being tested in test_usage.py, display them in a simple
20+
Dash app, and use Percy to take a snapshot for CVI.
21+
"""
1222
def test_usage(self):
1323
def encode(name):
1424
path = os.path.join(

0 commit comments

Comments
 (0)