Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Reject redirected requests for static snapshots #273

Merged
merged 1 commit into from
Jul 3, 2019

Conversation

Robdel12
Copy link
Contributor

@Robdel12 Robdel12 commented Jul 3, 2019

What is this?

This makes it so we no longer get redirected from the URL we visit to another one. That usually results in an error, which fails the test suite.

This also adds some try/catches around parts of the snapshot that could fail with helpful error messages

This makes it so we no longer get redirected from the URL we visit to another
one. That usually results in an error, which fails the test suite.

This also adds some try/catches around parts of the snapshot that could fail
with helpful error messages
@Robdel12 Robdel12 requested a review from djones July 3, 2019 22:32
return percyAgentClient.snapshot(snapshotName)
}, url)
try {
await page.goto(url, { waitUntil: 'networkidle2' })
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

networkidle2 is much faster than networkidle0

Copy link
Contributor

@djones djones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍍 LGTM

@Robdel12 Robdel12 merged commit a75a445 into master Jul 3, 2019
@delete-merged-branch delete-merged-branch bot deleted the rd/reject-redirects-static branch July 3, 2019 23:22
djones pushed a commit that referenced this pull request Jul 3, 2019
## [0.8.3](v0.8.2...v0.8.3) (2019-07-03)

### Bug Fixes

* Reject redirected requests for static snapshots ([#273](#273)) ([a75a445](a75a445))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants