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

test(gatsby-script): Off main thread e2e #35665

Merged

Conversation

tyhopp
Copy link
Contributor

@tyhopp tyhopp commented May 16, 2022

Description

End-to-end tests for gatsby-script off-main-thread loading strategy.

Partytown cannot be tested in Cypress, so we're using Playwright instead.

I attempted to point Playwright to the Chrome executable in our test Docker image via the PLAYWRIGHT_BROWSERS_PATH env var but it looks like Playwright wants it in a particular directory, not just any directory.

For now we install the Chromium executable Playwright wants in a post install script in the prod/develop e2e tests. A better solution probably looks something like creating our own Docker image from the one we already use and add a command to put the Chrome executable in a place Playwright can access. Did not pursue this since we may move the tests back to Cypress if we can get Partytown working in it.

Documentation

N/A

Related Issues

[sc-50697]

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label May 16, 2022
@tyhopp tyhopp added type: maintenance An issue or pull request describing a change that isn't a bug, feature or documentation change and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels May 16, 2022
@tyhopp tyhopp added this to the Script Component milestone May 16, 2022
@tyhopp tyhopp mentioned this pull request May 16, 2022
12 tasks
@tyhopp tyhopp force-pushed the test-script-component-off-main-thread-e2e branch from 0c6cb16 to b5a299d Compare May 17, 2022 03:54
@tyhopp tyhopp merged commit caff1f4 into feat-script-component May 17, 2022
@tyhopp tyhopp deleted the test-script-component-off-main-thread-e2e branch May 17, 2022 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: maintenance An issue or pull request describing a change that isn't a bug, feature or documentation change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant