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

run-browser: Replaced PhantomJS with Puppeteer #1

Merged
merged 1 commit into from
Dec 5, 2019

Conversation

ossdev07
Copy link

PhantomJS is an unmaintained project, replaced phantomjs dependency with the puppeteer.

Closes naugtur/xhr#180

Comment on lines -72 to -75
if (phantom) {
files.unshift(path.join(__dirname, '/lib/phantom-function-bind-shim.js'));
}

Copy link
Owner

Choose a reason for hiding this comment

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

oh wow, that's great :)

@@ -69,10 +67,6 @@ function createHandler(filename, reports, phantom, mockserverHandler) {
files = files.map(normalizePath);
files.unshift(path.join(__dirname, '/lib/override-log.js'));
Copy link
Owner

Choose a reason for hiding this comment

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

I think there might be a better way to get logs from puppeteer than this, but it's ok to leave it as is for now.

Copy link
Owner

@naugtur naugtur left a comment

Choose a reason for hiding this comment

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

looks good to me.

@ossdev07
Copy link
Author

Thanks, @naugtur for reviewing the patch, if it looks good to you when can I expect this PR to be merged?

@ossdev07
Copy link
Author

ossdev07 commented Dec 5, 2019

@naugtur if the patch looks good to you can you please merge this pull request.

@naugtur
Copy link
Owner

naugtur commented Dec 5, 2019

Sorry, busy week with family.
I can merge, but I think there's more to be done here. I shouldn't ld be more available next week.

@naugtur naugtur merged commit a5f6862 into naugtur:master Dec 5, 2019
@ossdev07
Copy link
Author

ossdev07 commented Dec 5, 2019

Thanks for merging this @naugtur, I have raised another pull request to resolve the failing test cases with puppeteer in xhr, Please have a look: naugtur/xhr#184

@ossdev07
Copy link
Author

@naugtur it will be really helpful if you could make a release with the changes in this PR.

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.

run-browser is an unmaintained project
2 participants