Skip to content

Conversation

@Meir017
Copy link
Member

@Meir017 Meir017 commented Mar 8, 2018

closes #78

@kblok
Copy link
Member

kblok commented Mar 8, 2018

Well now AppVeyor is working 😂

@Meir017
Copy link
Member Author

Meir017 commented Mar 8, 2018

It's failing because:
image

};
private string _downloadHost;

public const int DefaultRevision = 526987;
Copy link
Member

Choose a reason for hiding this comment

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

I can buy this now. But I created an issue to make it configurable in v1.0 #84

{
var downloader = Downloader.CreateDefault();
var revisionInfo = downloader.RevisionInfo(Downloader.CurrentPlatform, Downloader.DefaultRevision);
return revisionInfo.ExecutablePath;
Copy link
Member

Choose a reason for hiding this comment

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

This code is in the Launcher class on Puppeteer. Let's honor that.

https://github.com/GoogleChrome/puppeteer/blob/v1.0.0/lib/Launcher.js#L188

Copy link
Member Author

Choose a reason for hiding this comment

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

should that method be static?

Copy link
Member

Choose a reason for hiding this comment

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

Yes. Let's follow Puppetter API, it's static there.

}

}
internal string GetExecutablePath()
Copy link
Member

Choose a reason for hiding this comment

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

Can we add one line between the bracket on line 138 and this new function?


namespace PuppeteerSharp.Tests.Puppeteer
{
public class ExecutablePathTests
Copy link
Member

Choose a reason for hiding this comment

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

You need to make this class inherit from PuppeteerBaseTest and add the attribute [Collection("PuppeteerLoaderFixture collection")]

The problem we have here is that, unluckily, this is the first test running, so we need to download Chromium first, and PuppeteerBaseTest does that job for us.

Copy link
Member

Choose a reason for hiding this comment

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

@Meir017 do you think you will be able to implement this by tomorrow?
If not I can merge it and implement it in another PR.

@kblok kblok merged commit b1eef5d into hardkoded:master Mar 13, 2018
@Meir017 Meir017 deleted the feature/puppeteer-executable-path-tests branch March 15, 2018 13:29
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.

Implement Puppeteer.executablePath test

2 participants