@bugzy-ai/bugzy 1.12.0 → 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
 
@@ -6967,24 +6981,22 @@ Run automated Playwright tests and capture results.
6967
6981
 
6968
6982
  **Build Playwright Command** based on selector:
6969
6983
 
6984
+ The playwright.config.ts automatically loads environment variables from .env.testdata and .env files.
6985
+ Use npm scripts to run tests - no manual env export needed.
6986
+
6970
6987
  **For file pattern or specific file**:
6971
6988
  \`\`\`bash
6972
- npx playwright test [selector]
6989
+ npm test -- [selector]
6973
6990
  \`\`\`
6974
6991
 
6975
6992
  **For tag**:
6976
6993
  \`\`\`bash
6977
- npx playwright test --grep "[tag]"
6994
+ npm test -- --grep "[tag]"
6978
6995
  \`\`\`
6979
6996
 
6980
6997
  **For all tests**:
6981
6998
  \`\`\`bash
6982
- npx playwright test
6983
- \`\`\`
6984
-
6985
- **Execute Tests via Bash:**
6986
- \`\`\`bash
6987
- npx playwright test [selector]
6999
+ npm test
6988
7000
  \`\`\`
6989
7001
 
6990
7002
  Wait for execution to complete. This may take several minutes depending on test count.
@@ -7515,7 +7527,8 @@ Before adding ANY variable to .env.testdata, check if it's a secret:
7515
7527
  1. Scan for TEST_* variable references in test plan and test cases
7516
7528
  2. For each variable found:
7517
7529
  - If name contains PASSWORD/SECRET/TOKEN/KEY -> Skip (it's a secret, goes in .env only)
7518
- - 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
7519
7532
  3. Preserve existing variables in .env.testdata
7520
7533
 
7521
7534
  **Example .env.testdata (non-secrets only):**