garris / garris/BackstopJS

Allow ability to override userAgent in scenario where using Playwright as engine

Open
#1,591 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

It would be helpful to be able to supply a custom User-Agent string to allow for a custom userAgent string to be supplied during the setup of the browserContext (see: https://playwright.dev/docs/emulation#user-agent). Many applications of this (eg checking for behaviour where UA is scanned for old/unexpected UA strings, custom UA strings to avoid adding to Google Analytics/Tag accesses, etc).

It looks like most of the work is done for this change within https://github.com/garris/BackstopJS/pull/1398 (bar resolving merge conflicts) - I had tested a similar solution locally. Can this be reviewed/merged in please?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.