File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed
tests/bookmarks_and_history Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,20 @@ def sys_platform():
167
167
return platform .system ()
168
168
169
169
170
+ @pytest .fixture ()
171
+ def downloads_folder (sys_platform ):
172
+ """Return the downloads folder location for this OS"""
173
+ if sys_platform == "Windows" :
174
+ user = os .environ .get ("USERNAME" )
175
+ return f"C:\\ Users\\ { user } \\ Downloads\\ { file_name } "
176
+ elif sys_platform == "Darwin" : # MacOS
177
+ user = os .environ .get ("USER" )
178
+ return f"/Users/{ user } /Downloads/{ file_name } "
179
+ elif sys_platform == "Linux" :
180
+ user = os .environ .get ("USER" )
181
+ return f"/home/{ user } /Downloads/{ file_name } "
182
+
183
+
170
184
@pytest .fixture ()
171
185
def fx_executable (request , sys_platform ):
172
186
"""Get the Fx executable path based on platform and edition request."""
Original file line number Diff line number Diff line change 31
31
"selectorData" : " zoomIn" ,
32
32
"strategy" : " id" ,
33
33
"groups" : []
34
+ },
35
+
36
+ "download" : {
37
+ "selectorData" : " download" ,
38
+ "strategy" : " id" ,
39
+ "groups" : []
34
40
}
35
41
}
Original file line number Diff line number Diff line change @@ -23,4 +23,4 @@ def test_bookmark_via_bookmark_menu(driver: Firefox):
23
23
24
24
# Verify that the bookmark is displayed in bookmarks menu
25
25
panel .open_bookmarks_menu ()
26
- panel .element_visible ("bookmark-by-title" , labels = ["Internet for people" ])
26
+ panel .element_visible ("bookmark-by-title" , labels = ["Internet for people" ])
You can’t perform that action at this time.
0 commit comments