@zhiweiliu/playwright-generator 1.0.7 → 1.0.9

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.
package/README.md CHANGED
@@ -198,7 +198,7 @@ Playwright test automation code is generated by running a command, with generate
198
198
  - If no output file is specified, the command will either append to `generated.test.ts` or update the test case if it exists
199
199
  - The following AI models are supported (specify with generation command; Copilot is used by default):
200
200
  - **Copilot**: GitHub Copilot API
201
- - **Claude**: Anthropic Claude API
201
+ - **Claude**: Anthropic Claude 3 Haiku API (widely available)
202
202
  - Credentials (LLM API keys, usernames, passwords) are retrieved from environment variables in the `.env` file for local development; the `.env` file should be ignored by Git
203
203
 
204
204
  **Generation Commands**:
@@ -310,14 +310,14 @@ Workflow file location: `.github/workflows/playwright-tests.yml`
310
310
 
311
311
  **Common Issues**:
312
312
 
313
- | Issue | Solution |
314
- | ----------------------------------- | --------------------------------------------------------------------------------------------------- |
315
- | `API key not found` | Verify `.env` file exists and `COPILOT_API_KEY` or `CLAUDE_API_KEY` is set |
316
- | `Claude API connection failed` | Check `CLAUDE_API_KEY` is valid and account has Claude API access; ensure key starts with `sk-ant-` |
317
- | `Tests timing out` | Increase `TIMEOUT` in `.env` or use explicit waits in test cases |
318
- | `Generated code doesn't compile` | Review the natural language description for clarity; regenerate with a refined prompt |
319
- | `Tests pass locally but fail in CI` | Check `BASE_URL` environment variable and add debugging with screenshots |
320
- | `Selector not found` | Ensure selectors are unique and reference current UI state |
313
+ | Issue | Solution |
314
+ | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
315
+ | `API key not found` | Verify `.env` file exists and `COPILOT_API_KEY` or `CLAUDE_API_KEY` is set |
316
+ | `Claude API connection failed` | Check `CLAUDE_API_KEY` is valid and account has Claude API access; ensure key starts with `sk-ant-`. Uses Claude 3 Haiku which is widely available. |
317
+ | `Tests timing out` | Increase `TIMEOUT` in `.env` or use explicit waits in test cases |
318
+ | `Generated code doesn't compile` | Review the natural language description for clarity; regenerate with a refined prompt |
319
+ | `Tests pass locally but fail in CI` | Check `BASE_URL` environment variable and add debugging with screenshots |
320
+ | `Selector not found` | Ensure selectors are unique and reference current UI state |
321
321
 
322
322
  ### GitHub Integration
323
323
 
package/dist/cli.js CHANGED
@@ -12,7 +12,7 @@ const program = new commander_1.Command();
12
12
  program
13
13
  .name("playwright-generator")
14
14
  .description("Generate Playwright test cases from natural language using LLM")
15
- .version("1.0.6");
15
+ .version("1.0.9");
16
16
  // Init command
17
17
  program
18
18
  .command("init [projectPath]")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhiweiliu/playwright-generator",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Generate Playwright test cases from natural language using LLM",
5
5
  "main": "dist/index.js",
6
6
  "bin": {