Percy will be able to use basic auth on restricted site, you just need to configure the .percy.yml at the root of your project, Percy will read this and use the credentials for each request that needs it.
Use this as template:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2 | |
snapshot: | |
widths: [375, 1280] | |
min-height: 1024 # px | |
percy-css: | | |
iframe { | |
display: none; | |
} | |
static: | |
base-url: /blog/ | |
files: '**/*.html' | |
ignore: '**/*.htm' | |
discovery: | |
allowed-hostnames: | |
- myhost | |
authorization: | |
username: "admin" | |
password: "admin" | |
request-headers: | |
Authorization: 'Basic YWRtaW46YWRtaW4=' | |
network-idle-timeout: 1500 # ms | |
disable-cache: false # default | |
concurrency: 15 | |
launch-options: | |
headless: true # default | |
args: [] # browser arguments/flags | |
timeout: 30000 # default | |
upload: | |
files: "**/*.{png,jpg,jpeg}" | |
ignore: "" |
Comments