Skip to content

Commit 4ba987f

Browse files
committed
update conftest and selectors
1 parent b65a8d3 commit 4ba987f

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

conftest.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,20 @@ def sys_platform():
167167
return platform.system()
168168

169169

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+
170184
@pytest.fixture()
171185
def fx_executable(request, sys_platform):
172186
"""Get the Fx executable path based on platform and edition request."""

modules/data/generic_pdf.components.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,11 @@
3131
"selectorData": "zoomIn",
3232
"strategy": "id",
3333
"groups": []
34+
},
35+
36+
"download": {
37+
"selectorData": "download",
38+
"strategy": "id",
39+
"groups": []
3440
}
3541
}

tests/bookmarks_and_history/test_bookmark_via_bookmark_menu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ def test_bookmark_via_bookmark_menu(driver: Firefox):
2323

2424
# Verify that the bookmark is displayed in bookmarks menu
2525
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"])

0 commit comments

Comments
 (0)