Skip to content

Commit 2f3037e

Browse files
authored
Merge pull request robotframework#1889 from yuriverweij/update-CI-firefox
Update CI runs to inlcude firefox
2 parents b12da89 + dbab5ad commit 2f3037e

File tree

2 files changed

+20
-21
lines changed

2 files changed

+20
-21
lines changed

.github/workflows/CI.yml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ jobs:
1010
strategy:
1111
matrix:
1212
python-version: [3.8, 3.11] # 3.12, pypy-3.9
13-
rf-version: [5.0.1, 6.1.1, 7.0b1]
14-
selenium-version: [4.14.0, 4.15.2, 4.16.0]
13+
rf-version: [5.0.1, 6.1.1, 7.0]
14+
selenium-version: [4.14.0, 4.15.2, 4.16.0] #4.17.0, 4.18.0
15+
browser: [firefox, chrome, headlesschrome] #edge
1516

1617
steps:
17-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1819
- name: Set up Python ${{ matrix.python-version }} with Robot Framework ${{ matrix.rf-version }}
19-
uses: actions/setup-python@v4
20+
uses: actions/setup-python@v5
2021
with:
2122
python-version: ${{ matrix.python-version }}
2223
- name: Setup Chrome
@@ -27,6 +28,14 @@ jobs:
2728
- run: |
2829
echo Installed chromium version: ${{ steps.setup-chrome.outputs.chrome-version }}
2930
${{ steps.setup-chrome.outputs.chrome-path }} --version
31+
- name: Setup firefox
32+
id: setup-firefox
33+
uses: browser-actions/setup-firefox@v1
34+
with:
35+
firefox-version: latest
36+
- run: |
37+
echo Installed firefox versions: ${{ steps.setup-firefox.outputs.firefox-version }}
38+
${{ steps.setup-firefox.outputs.firefox-path }} --version
3039
- name: Start xvfb
3140
run: |
3241
export DISPLAY=:99.0
@@ -62,25 +71,14 @@ jobs:
6271
6372
# Temporarily ignoring pypy execution
6473
- name: Run tests with headless Chrome and with PyPy
65-
if: matrix.python-version == 'pypy-3.9'
74+
if: startsWith( matrix.python-version, 'pypy') == true
6675
run: |
6776
xvfb-run --auto-servernum python atest/run.py --nounit --zip headlesschrome
6877
69-
- name: Run tests with normal Chrome if CPython
70-
if: matrix.python-version != 'pypy-3.9'
71-
run: |
72-
xvfb-run --auto-servernum python atest/run.py --zip chrome
73-
74-
# Recognize for the moment this will NOT run as we aren't using Python 3.9
75-
- name: Run tests with headless Firefox with Python 3.9 and RF 4.1.3
76-
if: matrix.python-version == '3.9' && matrix.rf-version == '4.1.3'
77-
run: |
78-
xvfb-run --auto-servernum python atest/run.py --zip headlessfirefox
79-
80-
- name: Run tests with normal Firefox with Python 3.9 and RF != 4.1.3
81-
if: matrix.python-version == '3.9' && matrix.rf-version != '4.1.3'
78+
- name: Run tests with ${{ matrix.browser }} if CPython
79+
if: startsWith( matrix.python-version, 'pypy') == false
8280
run: |
83-
xvfb-run --auto-servernum python atest/run.py --zip firefox
81+
xvfb-run --auto-servernum python atest/run.py --zip ${{ matrix.browser }}
8482
8583
# - name: Run tests with Selenium Grid
8684
# if: matrix.python-version == '3.11' && matrix.rf-version == '3.2.2' && matrix.python-version != 'pypy-3.9'

atest/acceptance/keywords/cookies.robot

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ Add Cookie When Expiry Is Human Readable Data&Time
4949
Delete Cookie
5050
[Tags] Known Issue Safari
5151
Delete Cookie test
52-
${cookies} = Get Cookies
53-
Should Be Equal ${cookies} far_future=timemachine; another=value
52+
${cookies} = Get Cookies as_dict=True
53+
${expected_cookies} Create Dictionary far_future=timemachine another=value
54+
Dictionaries Should Be Equal ${cookies} ${expected_cookies}
5455

5556
Non-existent Cookie
5657
Run Keyword And Expect Error

0 commit comments

Comments
 (0)