Skip to content

fix: Reject redirected requests for static snapshots#273

Merged
Robdel12 merged 1 commit intomasterfrom
rd/reject-redirects-static
Jul 3, 2019
Merged

fix: Reject redirected requests for static snapshots#273
Robdel12 merged 1 commit intomasterfrom
rd/reject-redirects-static

Conversation

@Robdel12
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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