-
Notifications
You must be signed in to change notification settings - Fork 39
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
reuse playwright tests for integration tests of React Router and TanStack #426
Conversation
|
commit: |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
#468 Bundle Size — 1.3MiB (+3.95%).c7cddb1(current) vs 5293db1 main#409(baseline) Warning Bundle contains 1 duplicate package – View duplicate packages Warning Bundle introduced one new package: process – View changed packages Bundle metrics
Bundle size by type
Bundle analysis report Branch pr/refactor-tests Project dashboard Generated by RelativeCI Documentation Report issue |
f9c7b7b
to
6ac9152
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super cool!
BASE_URL: ${{ github.event.deployment_status.environment_url }} | ||
|
||
- name: "Run Playwright tests against Vercel deployment - React Router" | ||
if: github.event.deployment_status.environment == 'Preview – apoll__client-integration-react-router' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if: github.event.deployment_status.environment == 'Preview – apoll__client-integration-react-router' | |
if: github.event.deployment_status.environment == 'Preview – apollo__client-integration-react-router' |
if: | | ||
github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' && ( | ||
github.event.deployment_status.environment == 'Preview – apollo__experimental-nextjs-app-support' || | ||
github.event.deployment_status.environment == 'Preview – apollo__client-integration-tanstack-start' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to include react router or is it intentionally omitted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good call! I can't test this until it hits main
, so this is a bit hazy to test (I'll probably cherry-pick this file over)
<> | ||
<p>{error.message}</p> | ||
</> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<> | |
<p>{error.message}</p> | |
</> | |
<p>{error.message}</p> |
The smallest of nitpicks since its in a test, but figured I'd comment anyways 🤣
context: { delay: 1000, ...(errorIn ? { error: errorIn } : {}) }, | ||
}); | ||
return { | ||
queryRef, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious how queryRef
plays a role here since its not used in Child
or RouteComponent
. Would you mind explaining that one? Is just calling preloadQuery
enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just calling preloadQuery
won't do anything - the signal that the data should go over the network is the act of including the queryRef
in the loader return value.
The queryRef
will get hydrated on arrival in the browser and start filling the cache - for that part it doesn't matter if you actually use it.
Compare this to useBackgroundQuery
without actually listening on the ref
- the network request happens anyways.
No description provided.