@sap-ux/ui5-test-writer 1.6.1 → 1.7.1

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 (39) hide show
  1. package/dist/fiori-elements-opa-writer.js +12 -4
  2. package/dist/types.d.ts +2 -2
  3. package/package.json +4 -4
  4. package/templates/v4/1.148/integration/ListReportJourney.js +129 -0
  5. package/templates/v4/1.148/integration/ListReportJourney.ts +133 -0
  6. package/templates/v4/1.148/integration/ObjectPageJourney.js +163 -0
  7. package/templates/v4/1.148/integration/ObjectPageJourney.ts +181 -0
  8. package/templates/v4/1.148/integration/pages/ObjectPage.js +42 -0
  9. package/templates/v4/1.148/integration/pages/ObjectPage.ts +35 -0
  10. package/templates/v4/1.84/integration/ObjectPageJourney.js +0 -6
  11. package/templates/v4/1.84/integration/ObjectPageJourney.ts +1 -7
  12. package/templates/v4/latest/integration/FPMJourney.js +49 -0
  13. package/templates/v4/latest/integration/FirstJourney.js +35 -0
  14. package/templates/v4/latest/integration/FirstJourney.ts +32 -0
  15. package/templates/v4/latest/integration/opaTests.qunit.html +27 -0
  16. package/templates/v4/latest/integration/opaTests.qunit.js +33 -0
  17. package/templates/v4/latest/integration/pages/FPM.js +30 -0
  18. package/templates/v4/latest/integration/pages/JourneyRunner.js +17 -0
  19. package/templates/v4/latest/integration/pages/JourneyRunner.ts +28 -0
  20. package/templates/v4/latest/integration/pages/ListReport.js +35 -0
  21. package/templates/v4/latest/integration/pages/ListReport.ts +25 -0
  22. package/templates/v4/latest/integration/types/OpaJourneyTypes.d.ts +56 -0
  23. /package/templates/v4/{1.150 → 1.148}/integration/FPMJourney.js +0 -0
  24. /package/templates/v4/{1.150 → 1.148}/integration/FirstJourney.js +0 -0
  25. /package/templates/v4/{1.150 → 1.148}/integration/FirstJourney.ts +0 -0
  26. /package/templates/v4/{1.150 → 1.148}/integration/opaTests.qunit.html +0 -0
  27. /package/templates/v4/{1.150 → 1.148}/integration/opaTests.qunit.js +0 -0
  28. /package/templates/v4/{1.150 → 1.148}/integration/pages/FPM.js +0 -0
  29. /package/templates/v4/{1.150 → 1.148}/integration/pages/JourneyRunner.js +0 -0
  30. /package/templates/v4/{1.150 → 1.148}/integration/pages/JourneyRunner.ts +0 -0
  31. /package/templates/v4/{1.150 → 1.148}/integration/pages/ListReport.js +0 -0
  32. /package/templates/v4/{1.150 → 1.148}/integration/pages/ListReport.ts +0 -0
  33. /package/templates/v4/{1.150 → 1.148}/integration/types/OpaJourneyTypes.d.ts +0 -0
  34. /package/templates/v4/{1.150 → latest}/integration/ListReportJourney.js +0 -0
  35. /package/templates/v4/{1.150 → latest}/integration/ListReportJourney.ts +0 -0
  36. /package/templates/v4/{1.150 → latest}/integration/ObjectPageJourney.js +0 -0
  37. /package/templates/v4/{1.150 → latest}/integration/ObjectPageJourney.ts +0 -0
  38. /package/templates/v4/{1.150 → latest}/integration/pages/ObjectPage.js +0 -0
  39. /package/templates/v4/{1.150 → latest}/integration/pages/ObjectPage.ts +0 -0
@@ -0,0 +1,56 @@
1
+ /******************************************************************************
2
+ * ╔═══════════════════════════════════════════════════════════════════════╗ *
3
+ * ║ ║ *
4
+ * ║ WARNING: AUTO-GENERATED FILE ║ *
5
+ * ║ ║ *
6
+ * ║ This file is automatically generated by SAP Fiori tools and is ║ *
7
+ * ║ overwritten when you run the OPA test generator again. ║ *
8
+ * ║ ║ *
9
+ * ║ Do not edit this file directly. Any changes will be lost. ║ *
10
+ * ║ ║ *
11
+ * ╚═══════════════════════════════════════════════════════════════════════╝ *
12
+ ******************************************************************************/
13
+
14
+ import type Opa5 from "sap/ui/test/Opa5";
15
+ <% if (pages.some(p => p.template === 'ListReport')) { -%>
16
+ import type { actions as ListReportActions, assertions as ListReportAssertions } from "sap/fe/test/ListReport";
17
+ <% } -%>
18
+ <% if (pages.some(p => p.template === 'ObjectPage')) { -%>
19
+ import type { actions as ObjectPageActions, assertions as ObjectPageAssertions } from "sap/fe/test/ObjectPage";
20
+ <% } -%>
21
+ <% if (pages.some(p => p.template === 'ListReport' || p.template === 'ObjectPage')) { -%>
22
+ import type { actions as TemplatePageActions, assertions as TemplatePageAssertions } from "sap/fe/test/TemplatePage";
23
+ <% } -%>
24
+ import type Shell from "sap/fe/test/Shell";
25
+ import type BaseArrangements from "sap/fe/test/BaseArrangements";
26
+ <% pages.filter((p) => p.template === 'ListReport' || p.template === 'ObjectPage').forEach(function(page) { -%>
27
+ import type { actions as <%- page.targetKey %>GeneratedCustomActions, assertions as <%- page.targetKey %>GeneratedCustomAssertions } from "../pages/<%- page.targetKey %>.gen";
28
+ <% }); -%>
29
+
30
+ export type Given = Opa5 & BaseArrangements & {
31
+ iTearDownMyApp: () => Given;
32
+ iStartMyApp: (sAppHash?: string, mInUrlParameters?: object) => Given;
33
+ and: Given;
34
+ };
35
+
36
+ export type When = Opa5 & BaseArrangements & {
37
+ <% pages.forEach(function(page) { -%>
38
+ <% if (page.template === 'ListReport') { -%>
39
+ onThe<%- page.targetKey %>Generated: Opa5 & ListReportActions & TemplatePageActions & typeof <%- page.targetKey %>GeneratedCustomActions;
40
+ <% } else if (page.template === 'ObjectPage') { -%>
41
+ onThe<%- page.targetKey %>Generated: Opa5 & ObjectPageActions & TemplatePageActions & typeof <%- page.targetKey %>GeneratedCustomActions;
42
+ <% } -%>
43
+ <% }); -%>
44
+ onTheShell: Shell;
45
+ };
46
+
47
+ export type Then = Opa5 & BaseArrangements & {
48
+ <% pages.forEach(function(page) { -%>
49
+ <% if (page.template === 'ListReport') { -%>
50
+ onThe<%- page.targetKey %>Generated: Opa5 & ListReportAssertions & TemplatePageAssertions & typeof <%- page.targetKey %>GeneratedCustomAssertions;
51
+ <% } else if (page.template === 'ObjectPage') { -%>
52
+ onThe<%- page.targetKey %>Generated: Opa5 & ObjectPageAssertions & TemplatePageAssertions & typeof <%- page.targetKey %>GeneratedCustomAssertions;
53
+ <% } -%>
54
+ <% }); -%>
55
+ onTheShell: Shell;
56
+ };