-
Notifications
You must be signed in to change notification settings - Fork 432
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
chore: enable serverActions in test and e2e studios #6311
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
No changes to documentation |
Component Testing Report Updated Apr 18, 2024 4:04 PM (UTC)
|
@@ -27,8 +27,8 @@ test.describe('inputs: text', () => { | |||
await page.waitForSelector('data-testid=field-simple', {timeout: 30000}) | |||
const field = page.getByTestId('field-simple').getByRole('textbox') | |||
|
|||
// Enter initial text and wait for the mutate call to be sent |
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 mean we are only testing the actions API and not the mutate API? Shouldn't we test both for a while at least?
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.
This particular line seems to be geared just to help this test await the right conditions (rather than testing the endpoint itself).
I agree with your concerns about testing both for a while -- I don't want the team to merge in code that works with server actions but not mutate (which is still the default) and for us to miss an issue.
Maybe what makes the most sense is having our CI stick with the mutate actions, and those of us who are working with server actions can test the e2e tests when we make changes?
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.
With that in mind, suggest we close this in favor of #6425 -- I think we've at least proven that e2e tests work as they are with server actions enabled! 🎉
Description
Server actions were disabled because of:
Since both are now resolved, I'd like to re-enable server actions in our test studio for further winetasting.
What to review
Are tests passing? Is there anything that we're missing?