Skip to content

Commit

Permalink
OpenUI5 Documentation Update 05.12.2024
Browse files Browse the repository at this point in the history
  • Loading branch information
openui5bot committed Dec 5, 2024
1 parent 062a46f commit e39dfeb
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 41 deletions.
24 changes: 12 additions & 12 deletions docs/Step_27_Unit_Test_with_QUnit_TypeScript_750c8c1.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,17 @@ The page will be referenced in the test suite that we will create next.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script
<meta charset="utf-8">
<script
src="../resources/sap/ui/test/starter/runTest.js"
data-sap-ui-resource-roots='{
"test-resources.ui5.walkthrough": "./"
}'
></script>
</head>
<body class="sapUiBody">
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
</body>
</html>
```
Expand All @@ -156,8 +156,8 @@ For more information, see [Concept and Basic Setup](Concept_and_Basic_Setup_22f5
```ts

export default {
name: "QUnit test suite for UI5 TypeScript Walkthrough",
defaults: {
name: "QUnit test suite for UI5 TypeScript Walkthrough",
defaults: {
page: "ui5://test-resources/ui5/walkthrough/Test.qunit.html?testsuite={suite}&test={name}",
qunit: {
version: 2
Expand All @@ -170,12 +170,12 @@ export default {
"ui5/walkthrough": "../"
}
}
},
tests: {
"unit/unitTests": {
title: "UI5 TypeScript Walkthrough - Unit Tests"
}
}
},
tests: {
"unit/unitTests": {
title: "UI5 TypeScript Walkthrough - Unit Tests"
}
}
};
```

Expand Down
47 changes: 23 additions & 24 deletions docs/Step_27_Unit_Test_with_QUnit_e1ce1de.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,31 +152,30 @@ The test suite serves as the entry point for all tests within our project such a

```js


sap.ui.define(() => {
"use strict";
return {
name: "QUnit test suite for UI5 Walkthrough",
defaults: {
page: "ui5://test-resources/ui5/walkthrough/Test.qunit.html?testsuite={suite}&test={name}",
qunit: {
version: 2
},
ui5: {
theme: "sap_horizon"
},
loader: {
paths: {
"ui5/walkthrough": "../"
}
}
},
tests: {
"unit/unitTests": {
title: "UI5 Walkthrough - Unit Tests"
}
}
};
"use strict";
return {
name: "QUnit test suite for UI5 Walkthrough",
defaults: {
page: "ui5://test-resources/ui5/walkthrough/Test.qunit.html?testsuite={suite}&test={name}",
qunit: {
version: 2
},
ui5: {
theme: "sap_horizon"
},
loader: {
paths: {
"ui5/walkthrough": "../"
}
}
},
tests: {
"unit/unitTests": {
title: "UI5 Walkthrough - Unit Tests"
}
}
};
});
```

Expand Down
4 changes: 1 addition & 3 deletions docs/Step_28_Integration_Test_with_OPA_9bf4dce.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,8 @@ We create a new `opaTests.qunit.js` file under `webapp/test/integration/`.
This module imports our `NavigationJourney` and is the entrypoint for all integration tests in the project.

```js

sap.ui.define([
"./NavigationJourney"
"./NavigationJourney"
]);
```

Expand All @@ -170,7 +169,6 @@ sap.ui.define([
Finally we reference the new `integration/opaTests.qunit.js` in the `testsuite.qunit.js` file. The `.qunit.js` extension is omitted and will be added automatically during runtime.

```js

sap.ui.define(() => {
"use strict";
return {
Expand Down
3 changes: 1 addition & 2 deletions docs/Step_28_Integration_Test_with_OPA_TypeScript_412f0b6.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,8 @@ import "./NavigationJourney";
Finally we reference the new `integration/opaTests.qunit.ts` in the `testsuite.qunit.ts` file. The `.qunit.ts` extension is omitted and will be added automatically during runtime.

```ts

export default {
// ...
// ...
tests: {
"unit/unitTests": {
title: "UI5 TypeScript Walkthrough - Unit Tests"
Expand Down

0 comments on commit e39dfeb

Please sign in to comment.