@trackunit/iris-app-e2e 1.8.89-alpha-fe18567f438.0 → 1.8.90

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.
Files changed (42) hide show
  1. package/index.cjs.default.js +1 -0
  2. package/index.cjs.js +422 -0
  3. package/index.cjs.mjs +2 -0
  4. package/index.d.ts +1 -0
  5. package/index.esm.js +398 -0
  6. package/package.json +14 -19
  7. package/CHANGELOG.md +0 -2488
  8. package/generators.json +0 -12
  9. package/src/commands/defaultCommands.js +0 -135
  10. package/src/commands/defaultCommands.js.map +0 -1
  11. package/src/generators/e2e-configuration/README.md +0 -79
  12. package/src/generators/e2e-configuration/files/root/cypress/e2e/app.cy.ts__tmpl__ +0 -18
  13. package/src/generators/e2e-configuration/files/root/cypress/fixtures/auth.json__tmpl__ +0 -4
  14. package/src/generators/e2e-configuration/files/root/cypress/support/commands.ts__tmpl__ +0 -3
  15. package/src/generators/e2e-configuration/files/root/cypress/support/e2e.ts__tmpl__ +0 -18
  16. package/src/generators/e2e-configuration/files/root/cypress/tsconfig.json__tmpl__ +0 -17
  17. package/src/generators/e2e-configuration/files/root/cypress.config.ts__tmpl__ +0 -25
  18. package/src/generators/e2e-configuration/generator.js +0 -238
  19. package/src/generators/e2e-configuration/generator.js.map +0 -1
  20. package/src/generators/e2e-configuration/schema.json +0 -20
  21. package/src/index.js +0 -16
  22. package/src/index.js.map +0 -1
  23. package/src/plugins/createLogFile.js +0 -42
  24. package/src/plugins/createLogFile.js.map +0 -1
  25. package/src/plugins/defaultPlugins.js +0 -142
  26. package/src/plugins/defaultPlugins.js.map +0 -1
  27. package/src/plugins/nxPreset.js +0 -41
  28. package/src/plugins/nxPreset.js.map +0 -1
  29. package/src/plugins/writeFileWithPrettier.js +0 -35
  30. package/src/plugins/writeFileWithPrettier.js.map +0 -1
  31. package/src/setup/defaultE2ESetup.js +0 -45
  32. package/src/setup/defaultE2ESetup.js.map +0 -1
  33. package/src/setup/setupHarRecording.js +0 -24
  34. package/src/setup/setupHarRecording.js.map +0 -1
  35. package/src/support.js +0 -13
  36. package/src/support.js.map +0 -1
  37. package/src/utils/Codeowner.js +0 -136
  38. package/src/utils/Codeowner.js.map +0 -1
  39. package/src/utils/fileNameBuilder.js +0 -38
  40. package/src/utils/fileNameBuilder.js.map +0 -1
  41. package/src/utils/fileUpdater.js +0 -37
  42. package/src/utils/fileUpdater.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"fileNameBuilder.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-e2e/src/utils/fileNameBuilder.ts"],"names":[],"mappings":";;AAOA,kDAMC;AAiBD,0CAGC;AAjCD;;;;;;GAMG;AACH,SAAgB,mBAAmB,CAAC,GAAW;IAC7C,OAAO,GAAG;SACP,OAAO,CAAC,2BAA2B,EAAE,EAAE,CAAC,CAAC,yCAAyC;SAClF,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,qCAAqC;SACzD,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,oCAAoC;SACzD,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,gCAAgC;AAC5D,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAgB,eAAe,CAAC,QAAgB,EAAE,KAAa,EAAE,YAAqB;IACpF,MAAM,QAAQ,GAAG,GAAG,QAAQ,IAAI,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,YAAY,YAAY,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,CAAC,WAAW,EAAE,GAAG,CAAC;IAC7H,OAAO,mBAAmB,CAAC,QAAQ,CAAC,CAAC;AACvC,CAAC","sourcesContent":["/**\n * Sanitizes a string to be safe for use in filenames.\n * Removes special characters and truncates if too long.\n *\n * @param str - The string to sanitize (e.g., test suite or test name)\n * @returns {string} Sanitized string safe for filesystem use\n */\nexport function sanitizeForFilename(str: string): string {\n return str\n .replace(/[^a-zA-Z0-9-_\\s\\[\\]\\(\\)]/g, \"\") // Remove special chars - with exceptions\n .replace(/-+/g, \"-\") // Collapse multiple hyphens into one\n .replace(/\\s+/g, \" \") // Collapse multiple spaces into one\n .replace(/^-|-$/g, \"\"); // Trim leading/trailing hyphens\n}\n\n/**\n * Builds a standardized filename for test artifacts (e.g., HAR files, screenshots).\n * Combines test name, state, and attempt number into a readable filename.\n *\n * @param testName - The name of the test (will be sanitized)\n * @param state - The test state (e.g., 'passed', 'failed')\n * @param currentRetry - The current retry attempt number (0-based)\n * @returns {string} A sanitized filename in the format: \"testName (state) (attempt N)\"\n * @example\n * fileNameBuilder(\"Login Flow\", \"failed\", 0)\n * // Returns: \"Login Flow (failed) (attempt 1)\"\n * @example\n * fileNameBuilder(\"Test: with -> special chars\", \"passed\", 2)\n * // Returns: \"Test with - special chars (passed) (attempt 3)\"\n */\nexport function fileNameBuilder(testName: string, state: string, currentRetry?: number): string {\n const fileName = `${testName} ${currentRetry !== undefined ? `(Attempt ${currentRetry + 1})` : \"\"} (${state.toLowerCase()})`;\n return sanitizeForFilename(fileName);\n}\n"]}
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteFileInTree = exports.updateFileInTree = void 0;
4
- /**
5
- *
6
- * @param tree File system tree
7
- * @param path Path to source file in the Tree
8
- * @param updater Function that maps the current file content to a new to be written to the Tree
9
- */
10
- const updateFileInTree = (tree, path, updater) => {
11
- if (!tree.exists(path)) {
12
- throw new Error("File not found: " + path);
13
- }
14
- const fileContent = tree.read(path, "utf-8");
15
- if (!fileContent) {
16
- throw new Error("File is empty: " + path);
17
- }
18
- const result = updater(fileContent);
19
- if (result !== fileContent) {
20
- tree.write(path, result);
21
- }
22
- };
23
- exports.updateFileInTree = updateFileInTree;
24
- /**
25
- *
26
- * @param tree File system tree
27
- * @param path Path to source file in the Tree
28
- */
29
- const deleteFileInTree = (tree, path) => {
30
- if (!tree.exists(path)) {
31
- // File doesn't exist, nothing to delete - this is fine
32
- return;
33
- }
34
- tree.delete(path);
35
- };
36
- exports.deleteFileInTree = deleteFileInTree;
37
- //# sourceMappingURL=fileUpdater.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fileUpdater.js","sourceRoot":"","sources":["../../../../../../libs/iris-app-sdk/iris-app-e2e/src/utils/fileUpdater.ts"],"names":[],"mappings":";;;AAEA;;;;;GAKG;AACI,MAAM,gBAAgB,GAAG,CAAC,IAAU,EAAE,IAAY,EAAE,OAAwC,EAAE,EAAE;IACrG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC;IAC7C,CAAC;IAED,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC7C,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IAC5C,CAAC;IACD,MAAM,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAEpC,IAAI,MAAM,KAAK,WAAW,EAAE,CAAC;QAC3B,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC3B,CAAC;AACH,CAAC,CAAC;AAdW,QAAA,gBAAgB,oBAc3B;AAEF;;;;GAIG;AACI,MAAM,gBAAgB,GAAG,CAAC,IAAU,EAAE,IAAY,EAAE,EAAE;IAC3D,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;QACvB,uDAAuD;QACvD,OAAO;IACT,CAAC;IAED,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACpB,CAAC,CAAC;AAPW,QAAA,gBAAgB,oBAO3B","sourcesContent":["import { Tree } from \"@nx/devkit\";\n\n/**\n *\n * @param tree File system tree\n * @param path Path to source file in the Tree\n * @param updater Function that maps the current file content to a new to be written to the Tree\n */\nexport const updateFileInTree = (tree: Tree, path: string, updater: (fileContent: string) => string) => {\n if (!tree.exists(path)) {\n throw new Error(\"File not found: \" + path);\n }\n\n const fileContent = tree.read(path, \"utf-8\");\n if (!fileContent) {\n throw new Error(\"File is empty: \" + path);\n }\n const result = updater(fileContent);\n\n if (result !== fileContent) {\n tree.write(path, result);\n }\n};\n\n/**\n *\n * @param tree File system tree\n * @param path Path to source file in the Tree\n */\nexport const deleteFileInTree = (tree: Tree, path: string) => {\n if (!tree.exists(path)) {\n // File doesn't exist, nothing to delete - this is fine\n return;\n }\n\n tree.delete(path);\n};\n"]}