Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Conversation

@Robdel12
Copy link
Contributor

@Robdel12 Robdel12 commented Sep 12, 2019

What is this?

We're finally going to be able to spot when someone is using PercyScript (rather than it always showing as the Puppeteer SDK).

image

This does duplicate most of the puppeteer SDK, but that's okay. Every other SDK uses the same exact pattern for extracting the DOM from the test browser and then POST'ing that back to the agent process. I don't think we're actually DRYing anything up.

TODO:

  • Patch or minor? fix: vs feat:

This does duplicate most of the puppeteer SDK, but that's okay. Every other SDK
uses the same exact pattern for extracting the DOM from the test browser and
then `POST`'ing that back to the agent process. I don't think we're actually
DRYing anything up.
@Robdel12 Robdel12 requested a review from wwilsman September 12, 2019 16:18
Copy link

@wwilsman wwilsman left a comment

Choose a reason for hiding this comment

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

Only comments are around let/var

Feel free to ignore if you disagree since they're just nits

@wwilsman
Copy link

RE: fix vs. feat, I'd consider this a bug if it didn't report properly. So probably fix even though we're changing deps and internal logic, the public API stays the same with the addition of the client info.

@Robdel12 Robdel12 changed the title feat: Give PercyScript its own user agent fix: Give PercyScript its own user agent Sep 12, 2019
@Robdel12 Robdel12 merged commit 5075992 into master Sep 12, 2019
@delete-merged-branch delete-merged-branch bot deleted the rd/proper-user-agent branch September 12, 2019 16:35
Robdel12 added a commit that referenced this pull request Sep 12, 2019
* Give PercyScript its own user agent

This does duplicate most of the puppeteer SDK, but that's okay. Every other SDK
uses the same exact pattern for extracting the DOM from the test browser and
then `POST`'ing that back to the agent process. I don't think we're actually
DRYing anything up.

* Update CI scripts with yarn

* Fix puppeteer var name typo

* Code review feedback
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants