Skip to content

Commit d68fe89

Browse files
committed
check if it runs on firefox
Signed-off-by: Andrei Gherghescu <[email protected]>
1 parent 5dcf871 commit d68fe89

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ jobs:
141141
sudo apt-get update
142142
sudo apt-get install -y xvfb
143143
144-
# Run save_png test with nocapture for detailed webdriver logs
145-
- name: Run save_png test with nocapture (${{ matrix.os }} - Firefox)
144+
# Run tests on Ubuntu with Firefox
145+
- name: Run tests (${{ matrix.os }} - Firefox)
146146
if: matrix.os == 'ubuntu-latest' && matrix.browser == 'firefox'
147147
env:
148148
MOZ_HEADLESS: 1
@@ -160,23 +160,7 @@ jobs:
160160
echo "BROWSER_PATH: $BROWSER_PATH"
161161
echo "RUST_LOG: $RUST_LOG"
162162
163-
# Run only the save_surface_to_png test with nocapture for full webdriver logs
164-
xvfb-run -s "-screen 0 1920x1080x24" cargo test save -p plotly_static --features webdriver_download,geckodriver -- --nocapture
165-
166-
# Run tests on Ubuntu with Firefox
167-
- name: Run tests (${{ matrix.os }} - Firefox)
168-
if: matrix.os == 'ubuntu-latest' && matrix.browser == 'firefox'
169-
run: |
170-
# Set environment variables for Firefox WebDriver
171-
export BROWSER_PATH="${{ steps.setup-firefox.outputs.firefox-path }}"
172-
export RUST_LOG="debug"
173-
export RUST_BACKTRACE="1"
174-
175-
echo "Environment variables set:"
176-
echo "BROWSER_PATH: $BROWSER_PATH"
177-
echo "RUST_LOG: $RUST_LOG"
178-
179-
cargo test --verbose --workspace --features ${{ matrix.features }} --exclude plotly_kaleido
163+
xvfb-run -s "-screen 0 1920x1080x24" cargo test --verbose --workspace --features ${{ matrix.features }} --exclude plotly_kaleido
180164
181165
# Run tests on macOS with Chrome
182166
- name: Run tests (${{ matrix.os }} - Chrome)

0 commit comments

Comments
 (0)