@toolstackhq/create-qa-patterns 1.0.6 → 1.0.8

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 (34) hide show
  1. package/README.md +15 -2
  2. package/index.js +130 -48
  3. package/package.json +1 -1
  4. package/templates/cypress-template/.env.example +5 -0
  5. package/templates/cypress-template/.github/workflows/cypress-tests.yml +47 -0
  6. package/templates/cypress-template/README.md +195 -0
  7. package/templates/cypress-template/config/environments.ts +37 -0
  8. package/templates/cypress-template/config/runtime-config.ts +46 -0
  9. package/templates/cypress-template/config/secret-manager.ts +19 -0
  10. package/templates/cypress-template/config/test-env.ts +13 -0
  11. package/templates/cypress-template/cypress/e2e/ui-journey.cy.ts +20 -0
  12. package/templates/cypress-template/cypress/support/app-config.ts +23 -0
  13. package/templates/cypress-template/cypress/support/commands.d.ts +15 -0
  14. package/templates/cypress-template/cypress/support/commands.ts +17 -0
  15. package/templates/cypress-template/cypress/support/data/data-factory.ts +33 -0
  16. package/templates/cypress-template/cypress/support/data/id-generator.ts +13 -0
  17. package/templates/cypress-template/cypress/support/data/seeded-faker.ts +11 -0
  18. package/templates/cypress-template/cypress/support/e2e.ts +1 -0
  19. package/templates/cypress-template/cypress/support/pages/login-page.ts +23 -0
  20. package/templates/cypress-template/cypress/support/pages/people-page.ts +59 -0
  21. package/templates/cypress-template/cypress.config.ts +32 -0
  22. package/templates/cypress-template/demo-apps/ui-demo-app/package.json +10 -0
  23. package/templates/cypress-template/demo-apps/ui-demo-app/public/styles.css +120 -0
  24. package/templates/cypress-template/demo-apps/ui-demo-app/src/server.js +149 -0
  25. package/templates/cypress-template/demo-apps/ui-demo-app/src/store.js +43 -0
  26. package/templates/cypress-template/demo-apps/ui-demo-app/src/templates.js +121 -0
  27. package/templates/cypress-template/eslint.config.mjs +93 -0
  28. package/templates/cypress-template/package-lock.json +3758 -0
  29. package/templates/cypress-template/package.json +31 -0
  30. package/templates/cypress-template/scripts/run-cypress.mjs +105 -0
  31. package/templates/cypress-template/scripts/run-tests.sh +6 -0
  32. package/templates/cypress-template/tsconfig.json +15 -0
  33. package/templates/playwright-template/package-lock.json +533 -25
  34. package/templates/playwright-template/scripts/generate-allure-report.mjs +9 -1
@@ -24,10 +24,18 @@ const collectResultFiles = async () => {
24
24
  };
25
25
 
26
26
  const generateReport = async () => {
27
+ try {
28
+ await stat(resultsDir);
29
+ } catch {
30
+ process.stdout.write("Skipping Allure report generation because allure-results does not exist.\n");
31
+ return;
32
+ }
33
+
27
34
  const files = await collectResultFiles();
28
35
 
29
36
  if (files.length === 0) {
30
- throw new Error("No Allure result files found in allure-results. Run the tests before generating a report.");
37
+ process.stdout.write("Skipping Allure report generation because no result files were found.\n");
38
+ return;
31
39
  }
32
40
 
33
41
  await rm(outputDir, { force: true, recursive: true });