feat: improve Playwright configuration and enhance error handling in CreatePRDialog

- Updated Playwright configuration to always reuse existing servers, improving test efficiency.
- Enhanced CreatePRDialog to handle null browser URLs gracefully, ensuring better user experience during PR creation failures.
- Added new unit tests for app specification format and automaker paths, improving test coverage and reliability.
- Introduced tests for file system utilities and logger functionality, ensuring robust error handling and logging behavior.
- Implemented comprehensive tests for SDK options and dev server service, enhancing overall test stability and maintainability.
This commit is contained in:
Cody Seibert
2025-12-16 22:04:47 -05:00
parent 58d6ae02a5
commit 4996a63bcc
8 changed files with 1096 additions and 4 deletions

View File

@@ -115,7 +115,7 @@ export function CreatePRDialog({
if (!result.result.prCreated && hasBrowserUrl) {
// If gh CLI is not available, show browser fallback UI
if (prError === "gh_cli_not_available" || !result.result.ghCliAvailable) {
setBrowserUrl(result.result.browserUrl);
setBrowserUrl(result.result.browserUrl ?? null);
setShowBrowserFallback(true);
toast.success("Branch pushed", {
description: result.result.committed
@@ -140,7 +140,7 @@ export function CreatePRDialog({
}
// Show error but also provide browser option
setBrowserUrl(result.result.browserUrl);
setBrowserUrl(result.result.browserUrl ?? null);
setShowBrowserFallback(true);
toast.error("PR creation failed", {
description: errorMessage,