Skip to content

Commit b70d6f6

Browse files
Merge branch 'main' into philimon/autofill_refactor_#2
2 parents 78fc3b0 + 95704bd commit b70d6f6

15 files changed

+65
-59
lines changed

.cron.yml

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,41 @@
11
---
2-
32
jobs:
43
- name: new-beta-qa
54
job:
65
type: decision-task
76
treeherder-symbol: STARb
87
target-tasks-method: new_beta_qa
98
when:
10-
- {hour: 0, minute: 15}
11-
- {hour: 1, minute: 15}
12-
- {hour: 2, minute: 15}
13-
- {hour: 3, minute: 15}
14-
- {hour: 4, minute: 15}
15-
- {hour: 5, minute: 15}
16-
- {hour: 6, minute: 15}
17-
- {hour: 7, minute: 15}
18-
- {hour: 8, minute: 15}
19-
- {hour: 9, minute: 15}
20-
- {hour: 10, minute: 15}
21-
- {hour: 11, minute: 15}
22-
- {hour: 12, minute: 15}
23-
- {hour: 13, minute: 45}
24-
- {hour: 14, minute: 15}
25-
- {hour: 15, minute: 15}
26-
- {hour: 16, minute: 15}
27-
- {hour: 17, minute: 15}
28-
- {hour: 18, minute: 15}
29-
- {hour: 19, minute: 15}
30-
- {hour: 20, minute: 15}
31-
- {hour: 21, minute: 15}
32-
- {hour: 22, minute: 15}
33-
- {hour: 23, minute: 15}
9+
- { hour: 0, minute: 15 }
10+
- { hour: 1, minute: 15 }
11+
- { hour: 2, minute: 15 }
12+
- { hour: 3, minute: 15 }
13+
- { hour: 4, minute: 15 }
14+
- { hour: 5, minute: 15 }
15+
- { hour: 6, minute: 15 }
16+
- { hour: 7, minute: 15 }
17+
- { hour: 8, minute: 15 }
18+
- { hour: 9, minute: 15 }
19+
- { hour: 10, minute: 15 }
20+
- { hour: 11, minute: 15 }
21+
- { hour: 12, minute: 15 }
22+
- { hour: 13, minute: 15 }
23+
- { hour: 14, minute: 15 }
24+
- { hour: 15, minute: 15 }
25+
- { hour: 16, minute: 15 }
26+
- { hour: 17, minute: 15 }
27+
- { hour: 18, minute: 15 }
28+
- { hour: 19, minute: 15 }
29+
- { hour: 20, minute: 15 }
30+
- { hour: 21, minute: 15 }
31+
- { hour: 22, minute: 15 }
32+
- { hour: 23, minute: 15 }
3433

3534
- name: new-devedition-qa
3635
job:
3736
type: decision-task
3837
treeherder-symbol: STARd
3938
target-tasks-method: new_devedition_qa
4039
when:
41-
- {hour: 11, minute: 15}
42-
- {hour: 19, minute: 30}
43-
- {hour: 23, minute: 15}
40+
- { hour: 11, minute: 15 }
41+
- { hour: 23, minute: 15 }

.github/workflows/smoke.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ jobs:
187187
needs:
188188
- Smoke-Windows
189189
- Smoke-MacOS
190-
if: ${{ always() && github.event_name == 'pull_request' }}
191190
steps:
192191
- name: Checkout repository
193192
uses: actions/checkout@v4

ci_pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ markers = [
1616
testpaths = [
1717
"tests"
1818
]
19-
addopts = "-vs --ci --run-headless --json-report --reruns 3 --reruns-delay 3 -m 'not incident and not unstable and not headed' --html=artifacts/report.html"
19+
addopts = "-vs --ci --run-headless --json-report --json-report-file artifacts/report.json --reruns 3 --reruns-delay 3 -m 'not incident and not unstable and not headed' --html=artifacts/report.html"
2020

2121
[tool.ruff]
2222
target-version = "py310"

ci_pyproject_headed.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ markers = [
1616
testpaths = [
1717
"tests"
1818
]
19-
addopts = "-vs --ci --json-report --reruns 3 --reruns-delay 2 -m 'not incident and not unstable and headed' --html=artifacts/report_headed.html"
19+
addopts = "-vs --ci --json-report --json-report-file artifacts/report_headed.json --reruns 3 --reruns-delay 2 -m 'not incident and not unstable and headed' --html=artifacts/report_headed.html"
2020

2121
[tool.ruff]
2222
target-version = "py310"

l10n_CM/Unified/test_demo_cc_2_preview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from modules.browser_object_autofill_popup import AutofillPopup
55
from modules.page_object import AboutPrefs, CreditCardFill
6-
from modules.util import BrowserActions, Utilities
6+
from modules.util import Utilities
77

88

99
@pytest.fixture()

l10n_CM/Unified/test_demo_cc_3_autofill.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from selenium.webdriver import Firefox
33

44
from modules.browser_object_autofill_popup import AutofillPopup
5-
from modules.page_object import AboutPrefs, CreditCardFill
5+
from modules.page_object import CreditCardFill
66
from modules.util import Utilities
77

88

modules/data/generic_pdf.components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
},
153153

154154
"added-goomy-image": {
155-
"selectorData": "canvas[aria-label='goomy.png']",
155+
"selectorData": "[data-l10n-id='pdfjs-editor-stamp-editor'][aria-description='goomy.png']",
156156
"strategy": "css",
157157
"groups": []
158158
}

modules/page_object_about_pages.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import logging
22
import os
33
import re
4-
import sys
54

65
from pypom import Page
76
from selenium.common.exceptions import (
@@ -179,15 +178,8 @@ def check_logins_present(
179178
else:
180179
assert expected_logins == actual_logins
181180

182-
def get_downloads_dir(self) -> str:
183-
# Return full path to Documents directory
184-
home = os.path.expanduser("~")
185-
export_dir = os.path.join(home, "Downloads")
186-
return export_dir
187-
188-
def remove_password_csv(self):
181+
def remove_password_csv(self, downloads_dir):
189182
# Delete password.csv, if there is one in the export location
190-
downloads_dir = self.get_downloads_dir()
191183
passwords_csv = os.path.join(downloads_dir, "passwords.csv")
192184
for file in os.listdir(downloads_dir):
193185
delete_files_regex = re.compile(r"\bpasswords.csv\b")

modules/page_object_generics.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,23 @@ class GenericPage(BasePage):
1515

1616
URL_TEMPLATE = "{url}"
1717

18+
def navigate_dialog_to_location(self, location: str) -> BasePage:
19+
sleep(1.5)
20+
from pynput.keyboard import Controller, Key
21+
22+
keyboard = Controller()
23+
if self.sys_platform() == "Darwin" or self.sys_platform() == "Linux":
24+
keyboard.type("/")
25+
sleep(1.5)
26+
keyboard.type(location.lstrip("/"))
27+
else:
28+
sleep(1.5)
29+
keyboard.type(location)
30+
sleep(1)
31+
keyboard.press(Key.enter)
32+
sleep(1)
33+
keyboard.press(Key.enter)
34+
1835

1936
class GenericPdf(BasePage):
2037
"""

modules/testrail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def update_test_case(self, case_id, **kwargs):
173173
"""Given a test case id, update according to keyword args"""
174174
if not kwargs:
175175
return None
176-
return self.client.send_post(f"update_case/{case_id}", **kwargs)
176+
return self.client.send_post(f"update_case/{case_id}", kwargs)
177177

178178
def create_test_run_on_plan_entry(
179179
self, plan_id, entry_id, config_ids, description=None, case_ids=None

0 commit comments

Comments
 (0)