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:
4
.github/workflows/workflow.yml
vendored
4
.github/workflows/workflow.yml
vendored
@@ -86,6 +86,10 @@ jobs:
|
|||||||
- name: Supabase Server
|
- name: Supabase Server
|
||||||
run: pnpm run supabase:web:start -- -x studio,migra,deno-relay,pgadmin-schema-diff,imgproxy,logflare
|
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
|
- name: Run Playwright tests
|
||||||
run: pnpm run test
|
run: pnpm run test
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
|
|||||||
@@ -67,12 +67,14 @@ export default defineConfig({
|
|||||||
],
|
],
|
||||||
|
|
||||||
/* Run your local dev server before starting the tests */
|
/* Run your local dev server before starting the tests */
|
||||||
webServer: {
|
/*
|
||||||
cwd: '../../',
|
webServer: {
|
||||||
command: 'pnpm run dev',
|
cwd: '../../',
|
||||||
url: 'http://localhost:3000',
|
command: 'pnpm run dev',
|
||||||
reuseExistingServer: !process.env.CI,
|
url: 'http://localhost:3000',
|
||||||
stdout: 'pipe',
|
reuseExistingServer: !process.env.CI,
|
||||||
stderr: 'pipe',
|
stdout: 'pipe',
|
||||||
}
|
stderr: 'pipe',
|
||||||
|
}
|
||||||
|
*/
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export function InviteMembersDialogContainer({
|
|||||||
pending={pending}
|
pending={pending}
|
||||||
roles={roles}
|
roles={roles}
|
||||||
onSubmit={(data) => {
|
onSubmit={(data) => {
|
||||||
startTransition(async () => {
|
startTransition(() => {
|
||||||
const promise = createInvitationsAction({
|
const promise = createInvitationsAction({
|
||||||
accountSlug,
|
accountSlug,
|
||||||
invitations: data.invitations,
|
invitations: data.invitations,
|
||||||
|
|||||||
Reference in New Issue
Block a user