Run browser mode tests in Docker with authentication instead of Electron (#972)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
Co-authored-by: Thomas Nordquist <thomasnordquist@users.noreply.github.com>
This commit is contained in:
Copilot
2025-12-23 15:02:46 +01:00
committed by GitHub
parent 9e1c229a5d
commit 8d665e0e52
5 changed files with 181 additions and 19 deletions

View File

@@ -21,7 +21,7 @@ jobs:
- name: Test
run: yarn test
electron-tests:
browser-ui-tests:
runs-on: ubuntu-latest
container:
image: ghcr.io/thomasnordquist/mqtt-explorer-ui-tests:latest
@@ -34,16 +34,16 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install Packages
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Run Electron UI Tests
- name: Build Browser Mode
run: yarn build:server
- name: Run Browser UI Tests
timeout-minutes: 10
run: ./scripts/runUiTests.sh
run: ./scripts/runBrowserTests.sh
- name: Upload Test Screenshots
if: always()
uses: actions/upload-artifact@v4
with:
name: electron-test-screenshots
name: browser-test-screenshots
path: |
test-screenshot-*.png
retention-days: 30