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
|
||||
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
|
||||
|
||||
@@ -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',
|
||||
}
|
||||
*/
|
||||
});
|
||||
|
||||
@@ -88,7 +88,7 @@ export function InviteMembersDialogContainer({
|
||||
pending={pending}
|
||||
roles={roles}
|
||||
onSubmit={(data) => {
|
||||
startTransition(async () => {
|
||||
startTransition(() => {
|
||||
const promise = createInvitationsAction({
|
||||
accountSlug,
|
||||
invitations: data.invitations,
|
||||
|
||||
Reference in New Issue
Block a user