File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ import os
2
+ from seleniumbase .fixtures import constants
3
+
4
+ VISUAL_BASELINE_DIR = constants .VisualBaseline .STORAGE_FOLDER
5
+ abs_path = os .path .abspath ('.' )
6
+ visual_baseline_path = os .path .join (abs_path , VISUAL_BASELINE_DIR )
7
+
8
+
9
+ def get_visual_baseline_folder ():
10
+ return visual_baseline_path
11
+
12
+
13
+ def visual_baseline_folder_setup ():
14
+ """ Handle Logging """
15
+ if not os .path .exists (visual_baseline_path ):
16
+ try :
17
+ os .makedirs (visual_baseline_path )
18
+ except Exception :
19
+ pass # Should only be reachable during multi-threaded runs
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ class Files:
19
19
ARCHIVED_DOWNLOADS_FOLDER = "archived_files"
20
20
21
21
22
+ class VisualBaseline :
23
+ STORAGE_FOLDER = "visual_baseline"
24
+
25
+
22
26
class JQuery :
23
27
VER = "3.3.1"
24
28
# MIN_JS = "//cdnjs.cloudflare.com/ajax/libs/jquery/%s/jquery.min.js" % VER
You can’t perform that action at this time.
0 commit comments