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

feat(launch): introduce client, server & persistent launch modes (2) #840

Merged
merged 1 commit into from Feb 5, 2020

Conversation

pavelfeldman
Copy link
Member

No description provided.

@pavelfeldman pavelfeldman force-pushed the defaultContext2 branch 3 times, most recently from 664f226 to ec3c20d Compare February 5, 2020 17:15
@@ -100,10 +115,10 @@ export class Chromium implements BrowserType {
}

const usePipe = chromeArguments.includes('--remote-debugging-pipe');
if (usePipe && isServer)
throw new Error(`Argument "--remote-debugging-pipe" is not compatible with the launchBrowserApp.`);
if (usePipe && launchType === 'server')
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's completely ban both --remote-debugging-pipe and --remote-debugging-port.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@@ -47,7 +47,7 @@ module.exports.describe = function({testRunner, expect, playwright, defaultBrows
describe('ChromiumHeadful', function() {
it('background_page target type should be available', async() => {
const browserWithExtension = await playwright.launch(extensionOptions);
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's do launchPersistent here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Later!

expect(fs.readdirSync(userDataDir).length).toBeGreaterThan(0);
await browser.close();
await browserContext.close();
expect(fs.readdirSync(userDataDir).length).toBeGreaterThan(0);
// This might throw. See https://github.com/GoogleChrome/puppeteer/issues/2778
await rmAsync(userDataDir).catch(e => {});
});
it('userDataDir argument', async({server}) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Drop this one, it's equivalent to the previous.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@@ -93,22 +93,22 @@ module.exports.describe = ({testRunner, product, playwrightPath}) => {
describe('Browser', function() {
beforeAll(async state => {
state.browser = await playwright.launch();
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you lose defaultBrowserOptions here?

@pavelfeldman pavelfeldman merged commit a2ab645 into microsoft:master Feb 5, 2020
@pavelfeldman pavelfeldman deleted the defaultContext2 branch April 17, 2020 21:11
sand4rt pushed a commit to sand4rt/playwright that referenced this pull request Dec 21, 2022
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
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.

None yet

2 participants