Comments (6)
Released 1.0.0-beta.25 🎉
from cli.
Whoops sorry just blindly created it in the same repo as the previous issue, thanks for moving!
That resolution sounds perfect. Thank you so much for the continued incredible support!
from cli.
Hello again @nathanshelly!
I've moved this issue to the new repo since it relates directly to it.
If you can provide authorization headers via the headers
option, that may also work to bypass the login screen entirely.
percy.capture({
name: 'Behind Login',
url: 'http://localhost:3000/protected',
headers: {
Authorization: 'XXXXXX'
}
})
However, this issue did bring to my attention that if any page navigation occurs inside of the execute
function, then it will also result in the error you encountered. Rather than introduce another execute option, I've opted to move the injection step to after execute
is called. I also noticed there was another nuance where if the page was redirected, the incorrect URL was being provided to the snapshot method.
I've addressed both of those issues in PR #99. If you can confirm that this would solve your issue, I'll go ahead and merge it.
from cli.
Following up here I was hopeful I would be able to install the latest, unreleased changes including this fix via something like this in my package.json
:
"@percy/cli": "git+https://github.com/percy/cli.git#b6bceeeff58f35f379dcd2141db55259344bb3d1",
Unfortunately this fails with an error message about a missing version
field. This seems to be due to a limitation of yarn
with monorepo structures like this repo where it's attempting to install the top-level package.json
which has no version
field instead of the nested packages/cli
folder that I'd need. Any chance you'd be willing to cut a new beta release so I could use the fix?
from cli.
Sorry about the delay in releasing! I meant to do that asap, but wasn't near a computer when I merged the PR from mobile. Then my brain turned off work mode all weekend and I forgot.
I'll have a release cut shortly! 👍
from cli.
No worries whatsoever, thanks!
from cli.
Related Issues (20)
- Error: Navigation failed: Timed out waiting for the page load event - breaks our tests HOT 9
- 500 Internal Server Error - GET https://registry.npmjs.org/@percy%2fcli-config - KV GET failed: 401 Unauthorized HOT 2
- Please allow longer network idle timeouts HOT 2
- Cannot read properties of undefined (reading 'id') HOT 1
- Set browser prefers-color-scheme to test apps in dark mode HOT 1
- H
- [percy:core] Error : Timed out waiting for network requests to idle HOT 1
- Percy is not running, disabling snapshot HOT 4
- Browserstack: Build not created, Error: connect ECONNREFUSED HOT 3
- Bumping to different versions [Dependabot] HOT 1
- Reference Error: Excessive alias count indicates a resource exhaustion attack in percy url yaml with 360 url items HOT 2
- [percy] ParseError: Unexpected argument 'storybook'
- Percy exec fails binding to ipv6 HOT 2
- 413 Payload Too Large
- static.ignore option doesn't work
- Using PERCY_ENABLE can lead to NPE HOT 4
- V1.28.2 introduces a bug causing our CI to fail due to bad requests HOT 3
- Base64 encoded SVGs cause error when capturing HOT 2
- Add `percy exec` flag to avoid failure for Percy-related issues HOT 1
- Add a command that takes screenshots and writes them to a file instead of uploading HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.