Skip to content

Install playwright on demand #40722

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

Merged
merged 7 commits into from
Sep 29, 2020

Conversation

andrewbranch
Copy link
Member

🎭

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Sep 23, 2020
@andrewbranch andrewbranch requested a review from orta September 23, 2020 16:40
@andrewbranch
Copy link
Member Author

@orta have you ever seen the Playwright error the build failed with? It worked locally 🤔

@orta
Copy link
Contributor

orta commented Sep 28, 2020

I've not, will clone and look onw

@orta
Copy link
Contributor

orta commented Sep 28, 2020

That worked locally for me too, digging around a bit in their issues seems to hint that maybe this is webkit specific - I've added some debugging flags to see what's going on there, but I'm not offended if we switch it to just ff and chromium in the browsers to test

@orta
Copy link
Contributor

orta commented Sep 28, 2020

OK, I think that should be it - I think the in-process work for installing and setting up playwright didn't have things which would have been added to paths set up when it was being used (e.g. this error )

[err] /home/runner/work/TypeScript/TypeScript/node_modules/playwright/.local-browsers/webkit/minibrowser-wpe/MiniBrowser: error while loading shared libraries: libwoff2dec.so.1.0.2: cannot open shared object file: No such file or directory

Give this is a .so issue, it's likely we Mac users didn't hit it

@andrewbranch
Copy link
Member Author

Still no dice :/

@orta
Copy link
Contributor

orta commented Sep 29, 2020

Dropping safari did it, I'm alright with this

@@ -42,6 +42,9 @@ jobs:
- name: Linter
run: npm run lint:ci

- name: Adding playwright
run: npm install --no-save --no-package-lock playwright
Copy link
Member Author

Choose a reason for hiding this comment

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

The reason I put this in browserIntegrationTest.js is so it would work locally without extra magic steps, but if you don’t care about running locally (I guess nobody would really want to do that), this is fine

@andrewbranch andrewbranch merged commit 2084404 into microsoft:master Sep 29, 2020
@andrewbranch andrewbranch deleted the playwright-on-demand branch September 29, 2020 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants