Skip to content

Commit 72256ac

Browse files
Hani YacoubHani Yacoub
authored andcommitted
Merge branch 'main' into Hani/address_doorhanger_captures_email_telephone
2 parents 2448730 + 6579ab4 commit 72256ac

File tree

47 files changed

+393
-440
lines changed

Some content is hidden

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

47 files changed

+393
-440
lines changed

.cron.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- {hour: 17, minute: 15}
2828
- {hour: 18, minute: 15}
2929
- {hour: 19, minute: 15}
30-
- {hour: 20, minute: 15}
30+
- {hour: 20, minute: 00}
3131
- {hour: 21, minute: 15}
3232
- {hour: 22, minute: 15}
3333
- {hour: 23, minute: 15}

.github/workflows/check-beta.yml

Lines changed: 11 additions & 46 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: "16 */1 * * *"
5+
- cron: "49 */1 * * *"
66
env:
77
LATEST: ""
88
permissions:
@@ -11,55 +11,20 @@ permissions:
1111
jobs:
1212
Check-Beta-Version:
1313
runs-on: ubuntu-latest
14-
outputs:
15-
win_tested: ${{ steps.check_latest.outputs.win }}
16-
mac_tested: ${{ steps.check_latest.outputs.mac }}
17-
beta-version: ${{ steps.check_latest.outputs.beta-version }}
1814
steps:
1915
- name: Checkout repository
2016
uses: actions/checkout@v4
21-
with:
22-
sparse-checkout: |
23-
get_beta_version.py
24-
win-latest-reported-version
25-
mac-latest-reported-version
26-
sparse-checkout-cone-mode: false
27-
- name: Obtain the latest beta version number
17+
- name: Check if the run is reportable
18+
env:
19+
TESTRAIL_REPORT: true
20+
TESTRAIL_BASE_URL: ${{ secrets.TESTRAIL_BASE_URL }}
21+
TESTRAIL_API_KEY: ${{ secrets.TESTRAIL_API_KEY }}
22+
TESTRAIL_USERNAME: ${{ secrets.TESTRAIL_USERNAME }}
2823
run: |
29-
pip3 install beautifulsoup4
30-
echo "LATEST=$(python3 ./get_beta_version.py)" >> "$GITHUB_ENV"
31-
- name: Check if the latest version was tested
32-
id: check_latest
33-
run: |
34-
TESTED_WIN=$(cat ./win-latest-reported-version)
35-
if [ "$LATEST" = "$TESTED_WIN" ]; then
36-
echo "win=true" >> "$GITHUB_OUTPUT"
37-
else
38-
echo "win=false" >> "$GITHUB_OUTPUT"
39-
fi
40-
TESTED_MAC=$(cat ./mac-latest-reported-version)
41-
if [ "$LATEST" = "$TESTED_MAC" ]; then
42-
echo "mac=true" >> "$GITHUB_OUTPUT"
43-
else
44-
echo "mac=false" >> "$GITHUB_OUTPUT"
45-
fi
46-
echo "beta-version=$LATEST" >> "$GITHUB_OUTPUT"
47-
48-
# Run the beta if the newest version has not been tested
49-
Run-Win-Smoke:
50-
needs: Check-Beta-Version
51-
if: needs.Check-Beta-Version.outputs.win_tested == 'false'
52-
uses: ./.github/workflows/smoke.yml
53-
with:
54-
job_to_run: Smoke-Windows
55-
beta-version: ${{ needs.Check-Beta-Version.outputs.beta-version }}
56-
secrets: inherit
57-
58-
Run-Mac-Smoke:
24+
pip3 install 'pipenv==2023.11.15';
25+
pipenv install
26+
pipenv run python -c 'from modules import testrail_integration as tri; import sys; sys.exit(0) if tri.reportable() else sys.exit(100)'
27+
Run-Smoke-Tests:
5928
needs: Check-Beta-Version
60-
if: needs.Check-Beta-Version.outputs.mac_tested == 'false'
6129
uses: ./.github/workflows/smoke.yml
62-
with:
63-
job_to_run: Smoke-MacOS
64-
beta-version: ${{ needs.Check-Beta-Version.outputs.beta-version }}
6530
secrets: inherit

.github/workflows/smoke.yml

Lines changed: 12 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,6 @@ run-name: ${{ github.actor }} is running smoke tests
55
on:
66
pull_request:
77
workflow_call:
8-
inputs:
9-
job_to_run:
10-
required: true
11-
type: string
12-
beta-version:
13-
required: true
14-
type: string
15-
permissions:
16-
contents: 'write'
178
env:
189
TESTRAIL_BASE_URL: ${{ secrets.TESTRAIL_BASE_URL }}
1910
TESTRAIL_API_KEY: ${{ secrets.TESTRAIL_API_KEY }}
@@ -22,7 +13,6 @@ env:
2213

2314
jobs:
2415
Smoke-Windows:
25-
if: ${{ inputs.job_to_run == 'Smoke-Windows' || github.event_name == 'pull_request'}}
2616
runs-on: windows-latest
2717
steps:
2818
- name: Create app token
@@ -40,11 +30,10 @@ jobs:
4030
with:
4131
python-version: "3.11"
4232
- name: Set Environment
43-
if: ${{ inputs.job_to_run == 'Smoke-Windows' }}
33+
if: ${{ github.event_name == 'schedule' }}
4434
run: |
4535
$env_contents = @"
4636
TESTRAIL_REPORT='true'
47-
BETA_VERSION=${{ inputs.beta-version }}
4837
"@
4938
New-item -Name .env -Value $env_contents -ItemType File -Force
5039
Write-Host "Running report for most recent Beta on Windows"
@@ -78,39 +67,25 @@ jobs:
7867
shell: pwsh
7968
- name: Run Smoke Tests in Win
8069
if: steps.setup.conclusion == 'success'
81-
env:
82-
TESTRAIL_BASE_URL: ${{ secrets.TESTRAIL_BASE_URL }}
83-
TESTRAIL_API_KEY: ${{ secrets.TESTRAIL_API_KEY }}
84-
TESTRAIL_USERNAME: ${{ secrets.TESTRAIL_USERNAME }}
8570
run: |
8671
pipenv run python -c "import sys; print(sys.platform)"
8772
$env:FX_EXECUTABLE = "C:\Program Files\Custom Firefox\firefox.exe"
8873
Start-Process -FilePath $env:FX_EXECUTABLE -ArgumentList "--version" -Wait -NoNewWindow
89-
pipenv run pytest -n 4 $(python choose_ci_set.py)
74+
pipenv run python choose_ci_set.py
75+
pipenv run pytest -n 4 $(cat selected_tests)
9076
$env:TEST_EXIT_CODE = $LASTEXITCODE
9177
mv artifacts artifacts-win || true
9278
exit $env:TEST_EXIT_CODE
93-
- name: Commit Changed Tracker Files
94-
if: ${{ inputs.job_to_run == 'Smoke-Windows' }}
95-
run: |
96-
git pull
97-
git config --global user.email ${{ github.actor }}@users.noreply.github.com;
98-
git config --global user.name ${{ github.actor }};
99-
git add win-latest-reported-version;
100-
git commit -m "update windows reported version";
101-
git push
10279
- name: Run Smoke Tests in Win (Headed)
10380
if: steps.setup.conclusion == 'success' && always()
10481
env:
105-
TESTRAIL_BASE_URL: ${{ secrets.TESTRAIL_BASE_URL }}
106-
TESTRAIL_API_KEY: ${{ secrets.TESTRAIL_API_KEY }}
107-
TESTRAIL_USERNAME: ${{ secrets.TESTRAIL_USERNAME }}
10882
REPORTABLE: true
10983
run: |
11084
rm ./pyproject.toml;
11185
mv ./ci_pyproject_headed.toml ./pyproject.toml;
11286
$env:FX_EXECUTABLE = "C:\Program Files\Custom Firefox\firefox.exe"
113-
pipenv run pytest $(python choose_ci_set.py)
87+
pipenv run python choose_ci_set.py
88+
pipenv run pytest $(cat selected_tests)
11489
$env:TEST_EXIT_CODE = $LASTEXITCODE
11590
rm artifacts/assets -r -Force
11691
Get-ChildItem -Path "artifacts" | ForEach-Object {
@@ -131,7 +106,6 @@ jobs:
131106
name: artifacts-win
132107
path: artifacts-win
133108
Smoke-MacOS:
134-
if: ${{ inputs.job_to_run == 'Smoke-MacOS' || github.event_name == 'pull_request'}}
135109
runs-on: macos-latest
136110
steps:
137111
- name: Create app token
@@ -152,11 +126,11 @@ jobs:
152126
run: |
153127
python check_test_cases.py
154128
exit $?
129+
echo "Triggered by event: ${{ github.event_name }}"
155130
- name: Set Environment
156-
if: ${{ inputs.job_to_run == 'Smoke-MacOS' }}
157-
run:
131+
if: ${{ github.event_name == 'schedule' }}
132+
run: |
158133
echo "TESTRAIL_REPORT='true'" >> "$GITHUB_ENV";
159-
echo "BETA_VERSION=${{ inputs.beta-version }}" >> "$GITHUB_ENV";
160134
echo "Running report for most recent Beta on MacOS";
161135
- name: Install dependencies
162136
id: setup
@@ -171,35 +145,22 @@ jobs:
171145
- name: Run Smoke Tests in MacOS
172146
if: steps.setup.conclusion == 'success'
173147
env:
174-
TESTRAIL_BASE_URL: ${{ secrets.TESTRAIL_BASE_URL }}
175-
TESTRAIL_API_KEY: ${{ secrets.TESTRAIL_API_KEY }}
176-
TESTRAIL_USERNAME: ${{ secrets.TESTRAIL_USERNAME }}
177148
FX_EXECUTABLE: /Volumes/Firefox/Firefox.app/Contents/MacOS/firefox
178149
run: |
179150
/Volumes/Firefox/Firefox.app/Contents/MacOS/firefox --version
180-
pipenv run pytest --fx-executable="$FX_EXECUTABLE" -n 4 $(python choose_ci_set.py) || TEST_EXIT_CODE=$?
151+
pipenv run python choose_ci_set.py
152+
pipenv run pytest --fx-executable="$FX_EXECUTABLE" -n 4 $(cat selected_tests) || TEST_EXIT_CODE=$?
181153
mv artifacts artifacts-mac || true
182154
exit $TEST_EXIT_CODE
183-
- name: Commit Changed Tracker Files
184-
if: ${{ inputs.job_to_run == 'Smoke-MacOS' }}
185-
run: |
186-
git pull
187-
git config --global user.email ${{ github.actor }}@users.noreply.github.com;
188-
git config --global user.name ${{ github.actor }};
189-
git add mac-latest-reported-version;
190-
git commit -m "update macos reported version";
191-
git push
192155
- name: Run Smoke Tests in MacOS (Headed)
193156
if: steps.setup.conclusion == 'success' && always()
194157
env:
195-
TESTRAIL_BASE_URL: ${{ secrets.TESTRAIL_BASE_URL }}
196-
TESTRAIL_API_KEY: ${{ secrets.TESTRAIL_API_KEY }}
197-
TESTRAIL_USERNAME: ${{ secrets.TESTRAIL_USERNAME }}
198158
FX_EXECUTABLE: /Volumes/Firefox/Firefox.app/Contents/MacOS/firefox
199159
REPORTABLE: true
200160
run: |
201161
mv ./ci_pyproject_headed.toml ./pyproject.toml;
202-
pipenv run pytest --fx-executable="$FX_EXECUTABLE" $(python choose_ci_set.py) || TEST_EXIT_CODE=$?
162+
pipenv run python choose_ci_set.py
163+
pipenv run pytest --fx-executable="$FX_EXECUTABLE" $(cat selected_tests) || TEST_EXIT_CODE=$?
203164
mv -n artifacts/* artifacts-mac/ || true
204165
exit $TEST_EXIT_CODE
205166
- name: Upload artifacts

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
.tmp*
66
.testrail_credential*
77
.DS_Store
8+
selected_tests
89
test*.txt
910
fx_location
1011
test*txt

SELECTOR_INFO.md

Lines changed: 42 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,6 +1418,13 @@ Location: Any history item in the Hamburger history list
14181418
Path to .json: modules/data/context_menu.components.json
14191419
```
14201420
```
1421+
Selector Name: context-menu-add-search-engine
1422+
Selector Data: "context-menu-add-engine"
1423+
Description: Awesomebar context click option "Add <search engine>"
1424+
Location: Any history item in the Hamburger history list
1425+
Path to .json: modules/data/context_menu.components.json
1426+
```
1427+
```
14211428
Selector Name: context-menu-pin-tab
14221429
Selector Data: "context_pinTab"
14231430
Description: Tab context click option "Pin Tab"
@@ -2405,20 +2412,6 @@ Location: Private browsing mode
24052412
Path to .json: modules/data/navigation.components.json
24062413
```
24072414
```
2408-
Selector name: add-extra-search-engine
2409-
Selector Data: [id*=urlbar-engine-one-off-item-engine--1][tooltiptext*='{0}']
2410-
Description: Add extra search engine in the url bar
2411-
Location: URL bar
2412-
Path to .json: modules/data/navigation.components.json
2413-
```
2414-
```
2415-
Selector name: search-one-off-engine-button
2416-
Selector Data: [id*=urlbar-engine-one-off-item-engine][tooltiptext^='{0}']
2417-
Description: Search one off engine button
2418-
Location: URL bar search results
2419-
Path to .json: modules/data/navigation.components.json
2420-
```
2421-
```
24222415
Selector name: downloads-button
24232416
Selector Data: downloads-button
24242417
Description: Toolbar download button
@@ -2834,6 +2827,41 @@ Description: Search settings button in awesome bar
28342827
Location: Address bar
28352828
Path to .json: modules/data/navigation.components.json
28362829
```
2830+
```
2831+
Selector Name: searchmode-switcher
2832+
Selector Data: urlbar-searchmode-switcher
2833+
Description: searchmode switcher toolbar button
2834+
Location: Address bar
2835+
Path to .json: modules/data/navigation.components.json
2836+
```
2837+
```
2838+
Selector Name: searchmode-switcher-settings
2839+
Selector Data: searchmode-switcher-popup-search-settings-button
2840+
Description: Search settings button in the searchmode switcher dropdown
2841+
Location: Address bar
2842+
Path to .json: modules/data/navigation.components.json
2843+
```
2844+
```
2845+
Selector Name: search-mode-switcher-option
2846+
Selector Data: toolbarbutton[label*='{title}']
2847+
Description: Option by label in search mode list
2848+
Location: Search mode of awesomebar
2849+
Path to .json: modules/data/navigation.components.json
2850+
```
2851+
```
2852+
Selector Name: refresh-button-awesome-bar
2853+
Selector Data: .urlbarView-action-btn[data-action=refresh]
2854+
Description: Refresh button in the awesome bar
2855+
Location: Address bar
2856+
Path to .json: modules/data/navigation.components.json
2857+
```
2858+
```
2859+
Selector Name: refresh-firefox-dialog
2860+
Selector Data: window-modal-dialog
2861+
Description: Refresh Firefox dialog window
2862+
Location: Dialog window
2863+
Path to .json: modules/data/navigation.components.json
2864+
```
28372865
#### panel_ui
28382866
```
28392867
Selector name: panel-ui-button
@@ -3420,13 +3448,6 @@ Location: In the tabbed browser.
34203448
Path to .json: modules/data/tab_bar.components.json
34213449
```
34223450
```
3423-
Selector name: tab-sound-label
3424-
Selector Data: "tab-icon-sound-{status}-label"
3425-
Description: A tab's sound status
3426-
Location: In the tabbed browser.
3427-
Path to .json: modules/data/tab_bar.components.json
3428-
```
3429-
```
34303451
Selector name: tab-title
34313452
Selector Data: "tab-text"
34323453
Description: Gets the text of a Tab (it's title)

0 commit comments

Comments
 (0)