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:
committed by
GitHub
parent
44137016cb
commit
ac7608c6c9
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user