Skip to content

Commit df4ea81

Browse files
Hani YacoubHani Yacoub
authored andcommitted
Merge main and add skip
2 parents 048173e + ad870d0 commit df4ea81

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+7475
-213
lines changed

.github/workflows/check-beta.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Check new beta version
22

33
on:
44
schedule:
5-
- cron: "34 */1 * * *"
5+
- cron: "40 */1 * * *"
66
env:
77
LATEST: ""
88
permissions:
@@ -59,7 +59,7 @@ jobs:
5959
Run-L10N-Mac-Smoke:
6060
needs: Check-Beta-Version
6161
if: ${{ needs.Check-Beta-Version.outputs.mac_l10n_reportable == 'True' }}
62-
uses: ./.github/workflows/l10n_smoke.yml
62+
uses: ./.github/workflows/l10n.yml
6363
with:
6464
job_to_run: L10N-MacOS
6565
secrets: inherit

SELECTOR_INFO.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3043,6 +3043,12 @@ Location: Toolbar
30433043
Path to .json: modules/data/panel_ui.components.json
30443044
```
30453045
```
3046+
Selector name: panel-main-view
3047+
Description: Main body of Panel UI
3048+
Location: See above
3049+
Path to .json: modules/data/panel_ui.components.json
3050+
```
3051+
```
30463052
Selector name: sync-user-button
30473053
Selector Data: toolbarbutton[id='fxa-toolbar-menu-button']
30483054
Description: Account button
@@ -3148,6 +3154,12 @@ Location: Firefox menu
31483154
Path to .json: modules/data/panel_ui.components.json
31493155
```
31503156
```
3157+
Selector name: panel-ui-history-view
3158+
Description: Subview of Panel UI
3159+
Location: See above
3160+
Path to .json: modules/data/panel_ui.components.json
3161+
```
3162+
```
31513163
Selector name: panel-ui-history-recently-closed
31523164
Selector Data: appMenuRecentlyClosedTabs
31533165
Description: Recently closed tabs

collect_executables.py

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -146,23 +146,23 @@ def get_gd_platform():
146146
beta = int(beta)
147147

148148
next_major = f"{major + 1}.0b1"
149-
fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_major}-candidates/build1/"
149+
fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_major}-candidates/"
150150
rs = requests.get(fx_download_dir_url)
151151
if rs.status_code < 300:
152152
latest_beta_ver = next_major
153153
this_beta = next_major
154154
continue
155155

156156
next_minor = f"{major}.{minor + 1}b1"
157-
fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_minor}-candidates/build1/"
157+
fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_minor}-candidates/"
158158
rs = requests.get(fx_download_dir_url)
159159
if rs.status_code < 300:
160160
latest_beta_ver = next_minor
161161
this_beta = next_minor
162162
continue
163163

164164
next_beta = f"{major}.{minor}b{beta + 1}"
165-
fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_beta}-candidates/build1/"
165+
fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{next_beta}-candidates/"
166166
rs = requests.get(fx_download_dir_url)
167167
if rs.status_code < 300:
168168
latest_beta_ver = next_beta
@@ -171,20 +171,23 @@ def get_gd_platform():
171171

172172
candidate_exists = False
173173

174-
status = 200
175-
build = 0
176-
while status < 400 and build < 20:
177-
build += 1
178-
fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{latest_beta_ver}-candidates/build{build}/"
179-
180-
# Fetch the page
181-
response = requests.get(fx_download_dir_url)
182-
status = response.status_code
183-
184-
# Correct build is the last one that didn't 404
185-
build -= 1
186-
fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{latest_beta_ver}-candidates/build{build}/{get_fx_platform()}/{language}/"
187-
174+
# Look for the latest build
175+
fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{latest_beta_ver}-candidates/"
176+
response = requests.get(fx_download_dir_url)
177+
build = 1
178+
if response.status_code < 300:
179+
soup = BeautifulSoup(response.text, "html.parser")
180+
executable_name = ""
181+
# Extract the text of each line
182+
for line in soup.find_all("a"):
183+
line_text = line.getText().split(".")
184+
if not line_text[0]:
185+
continue
186+
# Get the executable name
187+
build = max(int(line_text[0][-2]), build)
188+
fx_download_dir_url = f"https://archive.mozilla.org/pub/firefox/candidates/{latest_beta_ver}-candidates/build{build}/{get_fx_platform()}/{language}/"
189+
190+
# Get the corresponding executable
188191
response = requests.get(fx_download_dir_url)
189192
status = response.status_code
190193
response_text = None

l10n_CM/constants/amazon/DE/amazon_ad.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"field_mapping": {
44
"country": "90b596de-e266-4e66-9530-2e41b184555d",
55
"name": "28f5f493-ad18-4e7c-99fa-524bc768ed7a",
6-
"telephone": "28f5f493-ad18-4e7c-99fa-524bc768ed7a",
7-
"address_level_1": "a5fb9e4c-60a0-42a2-9e4a-6a067b55d208",
6+
"telephone": "c384d303-3e2b-4b8a-ba89-c741056fc9b4",
7+
"street_address": "a5fb9e4c-60a0-42a2-9e4a-6a067b55d208",
88
"organization": "9e8475b3-e1a5-46cf-9af0-6f2caab918fe",
99
"address_level_2": "67cbe0f8-dbe4-4afd-a077-765186bcf0b3",
1010
"postal_code": "e38f3160-4ce5-4804-b5d5-b92c3ccc499e"
@@ -13,7 +13,7 @@
1313
"fields": [
1414
"90b596de-e266-4e66-9530-2e41b184555d",
1515
"28f5f493-ad18-4e7c-99fa-524bc768ed7a",
16-
"28f5f493-ad18-4e7c-99fa-524bc768ed7a",
16+
"c384d303-3e2b-4b8a-ba89-c741056fc9b4",
1717
"a5fb9e4c-60a0-42a2-9e4a-6a067b55d208",
1818
"9e8475b3-e1a5-46cf-9af0-6f2caab918fe",
1919
"67cbe0f8-dbe4-4afd-a077-765186bcf0b3",
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"url": "http://127.0.0.1:8080/amazon_ad.html",
33
"field_mapping": {
4-
"country": "da8fcb20-ecdb-44de-8fe6-d0086af67e96",
5-
"name": "53cea474-f431-4d44-bf79-83e28ff8afc1",
6-
"telephone": "c75098c8-1441-4e12-93bd-e213af1dc745",
7-
"address_level_1": "e1311f61-d43d-403a-94b4-127107489157",
8-
"address_level_2": "3809592b-2557-4035-b089-1adbe42a51ad",
9-
"postal_code": "122f5d67-36a2-47c7-b759-8ab92103d602"
4+
"country": "ec708d25-c69f-48a6-80f1-be4e96b6db04",
5+
"name": "87e21b43-187e-400b-bd9d-fd889f9fbaa0",
6+
"telephone": "499c2ea7-72a7-4e8f-8f76-5e37bb793016",
7+
"street_address": "3f36ea97-c7d4-4334-baba-ed7bb1d31230",
8+
"address_level_2": "ef31ec08-7a7a-4a82-b68e-495d3154700c",
9+
"postal_code": "71d96b8d-e26c-4aab-bfd7-b2bdb6b4ceb7"
1010
},
1111
"form_field": "*[data-moz-autofill-inspect-id='{name}']",
1212
"fields": [
13-
"da8fcb20-ecdb-44de-8fe6-d0086af67e96",
14-
"53cea474-f431-4d44-bf79-83e28ff8afc1",
15-
"c75098c8-1441-4e12-93bd-e213af1dc745",
16-
"e1311f61-d43d-403a-94b4-127107489157",
17-
"3809592b-2557-4035-b089-1adbe42a51ad",
18-
"122f5d67-36a2-47c7-b759-8ab92103d602"
13+
"ec708d25-c69f-48a6-80f1-be4e96b6db04",
14+
"87e21b43-187e-400b-bd9d-fd889f9fbaa0",
15+
"499c2ea7-72a7-4e8f-8f76-5e37bb793016",
16+
"3f36ea97-c7d4-4334-baba-ed7bb1d31230",
17+
"ef31ec08-7a7a-4a82-b68e-495d3154700c",
18+
"71d96b8d-e26c-4aab-bfd7-b2bdb6b4ceb7"
1919
]
2020
}

l10n_CM/constants/amazon/FR/amazon_cc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"form_field": "*[data-moz-autofill-inspect-id='{name}']",
1010
"fields": [
1111
"4bfc1932-75e6-436c-b195-a443beb1adfc",
12-
"4f630b6e-efd1-458d-9762-9a12a3dd28de",
12+
"b48f8715-36a7-4c89-8c64-5a5471f7d9f2",
1313
"fe1bdc2d-e0e3-477b-9d4a-416221ad0851",
1414
"68a5e85d-d8c5-4d10-9827-394263770656"
1515
]

l10n_CM/constants/bestbuy/US/bestbuy_ad.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
},
1414
"form_field": "*[data-moz-autofill-inspect-id='{name}']",
15+
"skip": "True",
1516
"fields": [
1617
"24fa9bb9-032c-4aa5-a829-8f3c8950cba3",
1718
"ca35b256-a76c-476b-bc50-5e651c0a20fe",

l10n_CM/constants/bestbuy/US/bestbuy_cc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"cvv": "3752da40-c202-4c98-8c7b-4d211ed879c4"
77
},
88
"form_field": "*[data-moz-autofill-inspect-id='{name}']",
9+
"skip": "True",
910
"fields": [
1011
"619571c7-fa6e-4b47-a8e2-a6e36fec376a",
1112
"2a9ecff6-145f-48de-a8f7-f1ac282885b9",
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"url": "http://127.0.0.1:8080/etsy_ad.html",
3+
"field_mapping": {
4+
"name": "7771b652-4623-4583-9545-a9a8fefb3df3",
5+
"street_address": "4502ed8f-43f4-4eb4-aa1a-444f42b54f3c",
6+
"address_level_2": "22534994-3376-45b8-8255-144bd5fae86e",
7+
"address_level_1": "e76a5693-ac48-4b3f-8c1e-1a20dc209b95",
8+
"postal_code": "82c605d7-c9b8-4573-a44b-6fac3db96bc0",
9+
"email": "ba1830ab-adad-4026-ad15-356f03489722"
10+
},
11+
12+
"form_field": "*[data-moz-autofill-inspect-id='{name}']",
13+
"fields": [
14+
"7771b652-4623-4583-9545-a9a8fefb3df3",
15+
"4502ed8f-43f4-4eb4-aa1a-444f42b54f3c",
16+
"22534994-3376-45b8-8255-144bd5fae86e",
17+
"e76a5693-ac48-4b3f-8c1e-1a20dc209b95",
18+
"82c605d7-c9b8-4573-a44b-6fac3db96bc0",
19+
"ba1830ab-adad-4026-ad15-356f03489722"
20+
]
21+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"url": "http://127.0.0.1:8080/etsy_cc.html",
3+
"field_mapping": {
4+
"name": "f1cb6519-4fb3-4e1e-8286-12ddd1c8e237",
5+
"card_number": "f27252a3-c5aa-4062-b422-a879c746d772",
6+
"expiration_month": "fbf757ed-9628-48d1-8eb4-21486fec38fc",
7+
"expiration_year": "42841b42-61a2-4651-b9a4-33ae12a8243e",
8+
"cvv": "7f6eebc8-8281-4653-9940-5fd90ddd62c4"
9+
},
10+
"form_field": "*[data-moz-autofill-inspect-id='{name}']",
11+
"fields": [
12+
"f1cb6519-4fb3-4e1e-8286-12ddd1c8e237",
13+
"f27252a3-c5aa-4062-b422-a879c746d772",
14+
"fbf757ed-9628-48d1-8eb4-21486fec38fc",
15+
"42841b42-61a2-4651-b9a4-33ae12a8243e",
16+
"7f6eebc8-8281-4653-9940-5fd90ddd62c4"
17+
]
18+
}

0 commit comments

Comments
 (0)