Update workflow and suppress dev server in e2e tests

The playwright.config.ts file has been updated to comment out the part that runs the local dev server during end-to-end tests. Additionally, an action has been added in the GitHub workflow to specifically run the app. Also, a trivial modification to the 'startTransition' function in the 'invite-members-dialog-container.tsx' file has been made.
This commit is contained in:
giancarlo
2024-04-13 20:50:08 +08:00
parent 52e7b89243
commit cb3e14a265
3 changed files with 15 additions and 9 deletions

View File

@@ -86,6 +86,10 @@ jobs:
- name: Supabase Server
run: pnpm run supabase:web:start -- -x studio,migra,deno-relay,pgadmin-schema-diff,imgproxy,logflare
- name: Run App
run: |
pnpm run dev &
- name: Run Playwright tests
run: pnpm run test
- uses: actions/upload-artifact@v4

View File

@@ -67,12 +67,14 @@ export default defineConfig({
],
/* Run your local dev server before starting the tests */
webServer: {
cwd: '../../',
command: 'pnpm run dev',
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
stdout: 'pipe',
stderr: 'pipe',
}
/*
webServer: {
cwd: '../../',
command: 'pnpm run dev',
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
stdout: 'pipe',
stderr: 'pipe',
}
*/
});

View File

@@ -88,7 +88,7 @@ export function InviteMembersDialogContainer({
pending={pending}
roles={roles}
onSubmit={(data) => {
startTransition(async () => {
startTransition(() => {
const promise = createInvitationsAction({
accountSlug,
invitations: data.invitations,