@sap-ux/ui5-test-writer 1.10.5 → 1.10.7

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/ui5-test-writer",
3
3
  "description": "SAP UI5 tests writer",
4
- "version": "1.10.5",
4
+ "version": "1.10.7",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -10,7 +10,7 @@
10
10
  data-sap-ui-theme="<%= ui5Theme %>"
11
11
  data-sap-ui-resource-roots='{
12
12
  "<%= appId %>": "../../",
13
- "integration": "./"
13
+ "<%= appId %>.test": "../"
14
14
  }'
15
15
  data-sap-ui-animation-mode="none"
16
16
  data-sap-ui-compat-version="edge"
@@ -8,7 +8,7 @@
8
8
  src="../../resources/sap-ui-core.js"
9
9
  data-sap-ui-resource-roots='{
10
10
  "<%= appIdWithSlash %>": "../../",
11
- "unit": "."
11
+ "<%= appIdWithSlash %>.test": "../"
12
12
  }'
13
13
  data-sap-ui-async="true"
14
14
  data-sap-ui-compat-version="edge">
@@ -2,7 +2,7 @@
2
2
  QUnit.config.autostart = false;
3
3
 
4
4
  sap.ui.require([
5
- "unit/AllTests"
5
+ "<%= appIdWithSlash %>/test/unit/AllTests"
6
6
  ], function () {
7
7
  "use strict";
8
8
 
@@ -10,13 +10,13 @@
10
10
  data-sap-ui-theme="<%= ui5Theme %>"
11
11
  data-sap-ui-resourceroots='{
12
12
  "<%= appId %>": "../../",
13
- "integration": "./"
13
+ "<%= appId %>.test": "../"
14
14
  }'
15
15
  data-sap-ui-animation="false"
16
16
  data-sap-ui-compatVersion="edge"
17
17
  data-sap-ui-async="true"
18
18
  data-sap-ui-preload="async"
19
- data-sap-ui-oninit="module:integration/opaTests.qunit">
19
+ data-sap-ui-oninit="module:<%= appId %>/test/integration/opaTests.qunit">
20
20
  </script>
21
21
  <link rel="stylesheet" type="text/css" href="../../resources/sap/ui/thirdparty/qunit-2.css">
22
22
  <script src="../../resources/sap/ui/thirdparty/qunit-2.js"></script>
@@ -7,11 +7,11 @@
7
7
  id="sap-ui-bootstrap"
8
8
  src="../../resources/sap-ui-core.js"
9
9
  data-sap-ui-resourceroots='{
10
- "<%= appIdWithSlash %>": "../../",
11
- "unit": "."
10
+ "<%= appId %>": "../../",
11
+ "<%= appId %>.test": "../"
12
12
  }'
13
13
  data-sap-ui-async="true"
14
- data-sap-ui-oninit="module:unit/unitTests.qunit">
14
+ data-sap-ui-oninit="module:<%= appIdWithSlash %>/test/unit/unitTests.qunit">
15
15
  </script>
16
16
  <link rel="stylesheet" type="text/css" href="../../resources/sap/ui/thirdparty/qunit-2.css">
17
17
  <script src="../../resources/sap/ui/thirdparty/qunit-2.js"></script>
@@ -4,7 +4,7 @@ QUnit.config.autostart = false;
4
4
 
5
5
  // import all your QUnit tests here
6
6
  void Promise.all([
7
- import("unit/controller/<%= viewName %>Page.controller")
7
+ import("<%= appIdWithSlash %>/test/unit/controller/<%= viewName %>Page.controller")
8
8
  ]).then(() => {
9
9
  QUnit.start();
10
10
  });
@@ -8,7 +8,8 @@
8
8
  src="../../resources/sap-ui-core.js"
9
9
  data-sap-ui-theme='sap_fiori_3'
10
10
  data-sap-ui-resourceroots='{
11
- "<%- appID %>": "../../"
11
+ "<%- appID %>": "../../",
12
+ "<%- appID %>.test": "../"
12
13
  }'
13
14
  data-sap-ui-animation="false"
14
15
  data-sap-ui-compatVersion="edge"
@@ -8,7 +8,8 @@
8
8
  src="../../resources/sap-ui-core.js"
9
9
  data-sap-ui-theme='sap_fiori_3'
10
10
  data-sap-ui-resourceroots='{
11
- "<%- appID %>": "../../"
11
+ "<%- appID %>": "../../",
12
+ "<%- appID %>.test": "../"
12
13
  }'
13
14
  data-sap-ui-animation="false"
14
15
  data-sap-ui-compatVersion="edge"
@@ -118,8 +118,8 @@ sap.ui.define([
118
118
  opaTest("Check contact card links", function (Given, When, Then) {
119
119
  <%_ contactCardColumns.forEach(function(column) { _%>
120
120
  // May fail if the mock data has no row at index 0 or that row does not render the contact link; adjust the row selector if needed.
121
- When.onThe<%- startLR %>Generated.onTable().iClickLink(0, "<%- column.property %>");
122
- Then.onThe<%- startLR %>Generated.onDialog().iCheckContactDialog({ controlType: "sap.ui.mdc.link.Panel" });
121
+ When.onThe<%- startLR %>Generated.onTable(defaultTableId).iClickLink(0, "<%- column.property %>");
122
+ Then.onThe<%- startLR %>Generated.onDialog(defaultTableId).iCheckContactDialog({ controlType: "sap.ui.mdc.link.Panel" });
123
123
  <%_ }); -%>
124
124
  });
125
125
  <%_ } -%>
@@ -125,8 +125,8 @@ function journey() {
125
125
  opaTest("Check contact card links", function (_Given: Given, When: When, Then: Then) {
126
126
  <%_ contactCardColumns.forEach(function(column) { _%>
127
127
  // May fail if the mock data has no row at index 0 or that row does not render the contact link; adjust the row selector if needed.
128
- When.onThe<%- startLR %>Generated.onTable("").iClickLink(0, "<%- column.property %>");
129
- Then.onThe<%- startLR %>Generated.onDialog().iCheckContactDialog({ controlType: "sap.ui.mdc.link.Panel" });
128
+ When.onThe<%- startLR %>Generated.onTable(defaultTableId).iClickLink(0, "<%- column.property %>");
129
+ Then.onThe<%- startLR %>Generated.onDialog(defaultTableId).iCheckContactDialog({ controlType: "sap.ui.mdc.link.Panel" });
130
130
  <%_ }); -%>
131
131
  });
132
132
  <%_ } -%>
@@ -8,7 +8,8 @@
8
8
  src="../../resources/sap-ui-core.js"
9
9
  data-sap-ui-theme='sap_fiori_3'
10
10
  data-sap-ui-resourceroots='{
11
- "<%- appID %>": "../../"
11
+ "<%- appID %>": "../../",
12
+ "<%- appID %>.test": "../"
12
13
  }'
13
14
  data-sap-ui-animation="false"
14
15
  data-sap-ui-compatVersion="edge"