chore: bump version to 2.21.13 and update dependencies (#424)

* chore: bump version to 2.21.13 and update dependencies

- Updated application version from 2.21.12 to 2.21.13 in package.json.
- Upgraded dependencies including @next/bundle-analyzer and @next/eslint-plugin-next to 16.0.8.
- Incremented @supabase/supabase-js to version 2.87.1 across multiple package.json files.
- Updated @types/node to version 24.10.2 for consistency in pnpm-lock.yaml and pnpm-workspace.yaml.
- Adjusted various package.json files to reflect updated versions for @ai-sdk/openai and @marsidev/react-turnstile.

* refactor: enhance invitation form submission handling

- Updated the invitation form submission process to wait for the response from the server after clicking the submit button, ensuring that the request is completed before proceeding.
- Cleaned up the locator for the continue button for improved readability.
This commit is contained in:
Giancarlo Buomprisco
2025-12-10 11:03:49 +08:00
committed by GitHub
parent 44137016cb
commit ac7608c6c9
8 changed files with 333 additions and 333 deletions

View File

@@ -8,7 +8,7 @@
"format": "prettier --check --write \"**/*.{ts,tsx}\" --ignore-path=\"../../.prettierignore\""
},
"dependencies": {
"@ai-sdk/openai": "^2.0.77",
"@ai-sdk/openai": "^2.0.80",
"@faker-js/faker": "^10.1.0",
"@hookform/resolvers": "^5.2.2",
"@tanstack/react-query": "catalog:",

View File

@@ -53,7 +53,15 @@ export class InvitationsPageObject {
}
}
await form.locator('button[type="submit"]').click();
await Promise.all([
form.locator('button[type="submit"]').click(),
this.page.waitForResponse((response) => {
return (
response.url().includes('/members') &&
response.request().method() === 'POST'
);
}),
]);
}
navigateToMembers() {
@@ -132,9 +140,7 @@ export class InvitationsPageObject {
await this.page.waitForTimeout(500);
// skip authentication setup
const continueButton = this.page.locator(
'[data-test="continue-button"]',
);
const continueButton = this.page.locator('[data-test="continue-button"]');
if (
await continueButton.isVisible({

View File

@@ -53,7 +53,7 @@
"@kit/ui": "workspace:*",
"@makerkit/data-loader-supabase-core": "^0.0.10",
"@makerkit/data-loader-supabase-nextjs": "^1.2.5",
"@marsidev/react-turnstile": "^1.3.1",
"@marsidev/react-turnstile": "^1.4.0",
"@nosecone/next": "1.0.0-beta.15",
"@radix-ui/react-icons": "^1.3.2",
"@supabase/supabase-js": "catalog:",