Skip to content

Commit 193de6f

Browse files
committed
edit workflow
1 parent 732de9c commit 193de6f

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

.github/workflows/debug.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ jobs:
1212
- name: Install SSH server
1313
run: |
1414
sudo systemsetup -f -setremotelogin on
15-
echo "${{ secrets.SARINA_SSH_KEY }}" >> ~/.ssh/authorized_keys
16-
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
15+
mkdir -p ~/.ssh
16+
echo "${{ secrets.SSH_PUBLIC_KEY }}" >> ~/.ssh/authorized_keys
17+
sudo chmod 600 ~/.ssh/authorized_keys
18+
sudo chown $(whoami) ~/.ssh/authorized_keys
19+
sudo launchctl bootstrap system /System/Library/LaunchDaemons/ssh.plist
1720
sudo launchctl start com.openssh.sshd
1821
1922
- name: Output SSH Command

tests/address_bar_and_search/test_search_term_persists.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ def test_search_term_persists(driver: Firefox):
2929
nav = Navigation(driver).open()
3030
tab = TabBar(driver)
3131

32-
3332
# Perform a search using the URL bar.
3433
nav.search(FIRST_SEARCH)
3534
tab.expect_title_contains("Google Search")

tests/pdf_viewer/test_pdf_download.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import time
33

44
import pytest
5-
65
from selenium.webdriver import Firefox
6+
77
from modules.page_object import GenericPdf
88

99

@@ -13,7 +13,9 @@ def add_prefs():
1313

1414

1515
@pytest.mark.headed
16-
def test_pdf_download(driver: Firefox, fillable_pdf_url: str, downloads_folder: str, sys_platform):
16+
def test_pdf_download(
17+
driver: Firefox, fillable_pdf_url: str, downloads_folder: str, sys_platform
18+
):
1719
"""
1820
C3932: PDF files can be successfully downloaded via pdf.js
1921
"""
@@ -57,6 +59,10 @@ def test_pdf_download(driver: Firefox, fillable_pdf_url: str, downloads_folder:
5759
saved_pdf_location = os.path.join(downloads_folder, file_name)
5860

5961
# Verify if the file exists
60-
assert os.path.exists(saved_pdf_location), f"The file was not downloaded to {saved_pdf_location}."
62+
assert os.path.exists(
63+
saved_pdf_location
64+
), f"The file was not downloaded to {saved_pdf_location}."
6165

62-
print(f"Test passed: The file {file_name} has been downloaded and is present at {saved_pdf_location}.")
66+
print(
67+
f"Test passed: The file {file_name} has been downloaded and is present at {saved_pdf_location}."
68+
)

0 commit comments

Comments
 (0)