Skip to content

fix: parse browser.RemoveUserContextParameters #1247

fix: parse browser.RemoveUserContextParameters

fix: parse browser.RemoveUserContextParameters #1247

Workflow file for this run

# This workflow will run headful selenium tests.
name: WebdriverIO tests
# Declare default permissions as read only.
permissions: read-all
on:
merge_group:
pull_request:
push:
branches: 'main'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
webdriverio:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Node.js
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version-file: '.nvmrc'
cache: npm
- uses: google/wireit@4aad131006ea85c1e42af927534ebb13426dd730 # setup-github-actions-caching/v1.0.2
- name: Install and build npm dependencies
run: npm ci
- name: Setup cache for browser binaries
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
with:
path: ~/.cache/chromium-bidi
key: ${{ runner.os }}-browsers-${{ hashFiles('.browser') }}) }}
- name: Install pinned browser
id: browser
run: node tools/install-browser.mjs --github
- name: Install chromedriver for the pinned browser
id: driver
run: node tools/install-browser.mjs --chromedriver --github
- name: Run WebdriverIO test
timeout-minutes: 20
run: >
xvfb-run --auto-servernum
node tests_external/webdriverio.mjs
env:
BROWSER_BIN: ${{ steps.browser.outputs.executablePath }}
CHROMEDRIVER_BIN: ${{ steps.driver.outputs.executablePath }}