@zhiweiliu/playwright-generator 1.0.48 → 1.0.49
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/dist/cli.js +1 -1
- package/dist/llm/provider.d.ts.map +1 -1
- package/dist/llm/provider.js +5 -0
- package/dist/llm/provider.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -13,7 +13,7 @@ const program = new commander_1.Command();
|
|
|
13
13
|
program
|
|
14
14
|
.name("playwright-generator")
|
|
15
15
|
.description("Generate Playwright test cases from natural language using LLM")
|
|
16
|
-
.version("1.0.
|
|
16
|
+
.version("1.0.49");
|
|
17
17
|
// Init command
|
|
18
18
|
program
|
|
19
19
|
.command("init [projectPath]")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/llm/provider.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,IAAI,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,8BAAsB,WAAW;IAC/B,QAAQ,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC;IACpE,QAAQ,CAAC,oBAAoB,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,CAAC;IAC3E,QAAQ,CAAC,kBAAkB,IAAI,OAAO,CAAC,OAAO,CAAC;IAE/C,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM;
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/llm/provider.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,IAAI,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,8BAAsB,WAAW;IAC/B,QAAQ,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC;IACpE,QAAQ,CAAC,oBAAoB,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,CAAC;IAC3E,QAAQ,CAAC,kBAAkB,IAAI,OAAO,CAAC,OAAO,CAAC;IAE/C,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM;IA6BhD,SAAS,CAAC,uBAAuB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM;CAuBhE"}
|
package/dist/llm/provider.js
CHANGED
|
@@ -15,6 +15,11 @@ The generated code should:
|
|
|
15
15
|
- The test title MUST begin with ALL of the following tags exactly as shown, preserving every tag: ${tagString}
|
|
16
16
|
- Example of correct title format: test('${tagString} Your description here', ...)
|
|
17
17
|
- Do NOT omit any tags. Do NOT add extra tags.
|
|
18
|
+
- If helper functions are needed, they are always static methods in helper classes, so do not create instances of helper classes.
|
|
19
|
+
- Please scan folder /generated/helpers/ for existing helper classes and methods.
|
|
20
|
+
- Please inject a import at the beginning of the test file for any helper classes used, e.g. import { HelperClassName } from '../helpers/HelperFileName';
|
|
21
|
+
- Please always call the methods by prefixing with the class name, e.g. HelperClass}.MethodName()
|
|
22
|
+
|
|
18
23
|
- Check the grammar and spelling of the test case and correct any errors in the generated code.
|
|
19
24
|
|
|
20
25
|
Natural language test case:
|
package/dist/llm/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/llm/provider.ts"],"names":[],"mappings":";;;AAqBA,MAAsB,WAAW;IAKrB,WAAW,CAAC,MAAiB;QACrC,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC7D,OAAO;;;;;;;;qGAQ0F,SAAS;2CACnE,SAAS
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/llm/provider.ts"],"names":[],"mappings":";;;AAqBA,MAAsB,WAAW;IAKrB,WAAW,CAAC,MAAiB;QACrC,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC7D,OAAO;;;;;;;;qGAQ0F,SAAS;2CACnE,SAAS;;;;;;;;;;EAUlD,MAAM,CAAC,QAAQ;;;QAGT,SAAS;;IAEb,CAAC;IACH,CAAC;IAES,uBAAuB,CAAC,MAAoB;QACpD,OAAO;;;gBAGK,MAAM,CAAC,UAAU;sBACX,MAAM,CAAC,iBAAiB;;eAE/B,MAAM,CAAC,UAAU;sBACV,MAAM,CAAC,iBAAiB;;EAE5C,MAAM,CAAC,aAAa;;;;mCAIa,MAAM,CAAC,UAAU;;;;;iBAKnC,MAAM,CAAC,UAAU;;IAE9B,CAAC;IACH,CAAC;CACF;AAzDD,kCAyDC"}
|