diff --git a/src/utils/__snapshots__/PromptCreator.test.ts.snap b/src/utils/__snapshots__/PromptCreator.test.ts.snap index 49721db..f392bff 100644 --- a/src/utils/__snapshots__/PromptCreator.test.ts.snap +++ b/src/utils/__snapshots__/PromptCreator.test.ts.snap @@ -94,9 +94,9 @@ Please follow these steps carefully: 1. Analyze the provided intent, the view hierarchy, and the snapshot image to understand the required action. 2. Determine if the intent can be fully validated visually using the snapshot image. -3. If the intent can be visually asserted and passes the visual check, return code that only comments on the visual test. +3. If the intent can be visually analyzed and passes the visual check, return only comments explaining the successful visual assertion. 4. If the visual assertion fails, return code that throws an informative error explaining the failure. -5. If visual validation is not possible or insufficient, generate the minimal executable code required to perform the intent using the available API. +5. If visual validation is not possible, proceed to generate the minimal executable code required to perform the intent. 6. If you cannot generate the relevant code due to ambiguity or invalid intent, return code that throws an informative error explaining the problem in one sentence. 7. Wrap the generated code with backticks, without any additional formatting. 8. Do not provide any additional code beyond the minimal executable code required to perform the intent. @@ -205,7 +205,7 @@ Your task is to generate the minimal executable code to perform the following in Please follow these steps carefully: 1. Analyze the provided intent and the view hierarchy to understand the required action. -2. If visual validation is not possible or insufficient, generate the minimal executable code required to perform the intent using the available API. +2. Generate the minimal executable code required to perform the intent using the available API. 3. If you cannot generate the relevant code due to ambiguity or invalid intent, return code that throws an informative error explaining the problem in one sentence. 4. Wrap the generated code with backticks, without any additional formatting. 5. Do not provide any additional code beyond the minimal executable code required to perform the intent. @@ -326,7 +326,7 @@ Your task is to generate the minimal executable code to perform the following in Please follow these steps carefully: 1. Analyze the provided intent and the view hierarchy to understand the required action. -2. If visual validation is not possible or insufficient, generate the minimal executable code required to perform the intent using the available API. +2. Generate the minimal executable code required to perform the intent using the available API. 3. If you cannot generate the relevant code due to ambiguity or invalid intent, return code that throws an informative error explaining the problem in one sentence. 4. Wrap the generated code with backticks, without any additional formatting. 5. Do not provide any additional code beyond the minimal executable code required to perform the intent.