@bugzy-ai/bugzy 1.12.1 → 1.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1633,6 +1633,19 @@ Create or update test case files in \`./test-cases/\` for the new feature:
1633
1633
  - Include: objective, preconditions, test steps, expected results
1634
1634
  - Mark \`automated: true\` for scenarios that should be automated
1635
1635
 
1636
+ ### Handle Missing Test Data
1637
+
1638
+ If the Jira issue or PR references test accounts/data (e.g., TEST_PREMIUM_USER, TEST_ADMIN_PASSWORD) that don't exist in \`.env.testdata\`:
1639
+
1640
+ 1. **DO NOT skip test creation** \u2014 missing data is not a blocker for writing tests
1641
+ 2. Add placeholder entries to \`.env.testdata\` for non-secret variables (empty value with comment)
1642
+ 3. Reference all variables as \`process.env.VAR_NAME\` in test code \u2014 they'll resolve at runtime
1643
+ 4. Create the test cases and specs normally \u2014 tests may fail until data is configured, which is expected
1644
+ 5. {{INVOKE_TEAM_COMMUNICATOR}} to notify the team about missing test data that needs to be configured
1645
+ 6. Include in the Slack message: which variables are missing, what values they need, and which tests depend on them
1646
+
1647
+ **CRITICAL**: Never conclude "manual verification required" or "BLOCKED" solely because test data is missing. Always create the test artifacts first.
1648
+
1636
1649
  ### Generate Playwright Specs
1637
1650
 
1638
1651
  {{INVOKE_TEST_CODE_GENERATOR}} to create automated test specs:
@@ -2756,6 +2769,7 @@ var CONTENT2 = `You are an expert Playwright test automation engineer specializi
2756
2769
  - Reference variables using \`process.env.VAR_NAME\` in tests
2757
2770
  - Add new required variables to \`.env.testdata\`
2758
2771
  - NEVER read \`.env\` file (secrets only)
2772
+ - **If a required variable is missing from \`.env.testdata\`**: Add it with an empty value and a \`# TODO: configure\` comment. Continue creating tests using \`process.env.VAR_NAME\` \u2014 tests will fail until configured, which is expected. Do NOT skip test creation because of missing data.
2759
2773
 
2760
2774
  3. ${MEMORY_READ_INSTRUCTIONS.replace(/{ROLE}/g, "test-code-generator")}
2761
2775
 
@@ -7513,7 +7527,8 @@ Before adding ANY variable to .env.testdata, check if it's a secret:
7513
7527
  1. Scan for TEST_* variable references in test plan and test cases
7514
7528
  2. For each variable found:
7515
7529
  - If name contains PASSWORD/SECRET/TOKEN/KEY -> Skip (it's a secret, goes in .env only)
7516
- - Otherwise -> Add to .env.testdata with actual value
7530
+ - If actual value is known -> Add to .env.testdata with value
7531
+ - If actual value is unknown -> Add to .env.testdata with empty value and \`# TODO: team to configure\` comment
7517
7532
  3. Preserve existing variables in .env.testdata
7518
7533
 
7519
7534
  **Example .env.testdata (non-secrets only):**