Skip to content

Commit 4357b0b

Browse files
Feat/ui5 test writer/generate from app info (#4543)
* refactor file writing * feat(ui5-test-writer): handle app info generation * cleanup * add icon for app info command * read target url from existing files * cleanup * Linting auto fix commit * cleanup, code review comment * changeset * sonar cleanup * Update agents.md * use getWebappPath * check for virtual tests * fix webapp paths * update tests * Linting auto fix commit * fix params * cleanup --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent a65897b commit 4357b0b

29 files changed

Lines changed: 4969 additions & 113 deletions

.changeset/chilly-icons-sniff.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@sap-ux/ui5-test-writer': patch
3+
'@sap-ux/ui-components': patch
4+
---
5+
6+
generate opa5 tests from app info

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ pnpm audit
195195
- Leverage TypeScript features: generics, union types, type guards, etc.
196196
- Avoid `any` type - use `unknown` or proper types
197197
- **Avoid TypeScript enums** - prefer union types or const objects for better type safety and tree-shaking
198+
- Avoid using the non-null assertion operator (!). Use optional chaining (?.), nullish coalescing (??), or explicit type guards to handle potentially null/undefined values.
198199

199200
**TypeScript config** (from [tsconfig.json](tsconfig.json)):
200201
- Strict mode enabled

packages/ui-components/src/components/Icons.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export enum UiIcons {
119119
NoResults = 'NoResults',
120120
NotEditable = 'NotEditable',
121121
ObjectPage = 'ObjectPage',
122+
OpaTests = 'OpaTests',
122123
OverviewPage = 'OverviewPage',
123124
PageLayout = 'PageLayout',
124125
PageMap = 'PageMap',
@@ -1700,6 +1701,26 @@ export function initIcons(): void {
17001701
/>
17011702
</svg>
17021703
),
1704+
[UiIcons.OpaTests]: (
1705+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
1706+
<path
1707+
fill={COLORS.default}
1708+
fillRule="evenodd"
1709+
clipRule="evenodd"
1710+
d="M4.49948 1C5.32779 1.00014 5.99948 1.67166 5.99948 2.5V6.69629C5.99946 7.31058 5.83786 7.91429 5.53073 8.44629L4.05612 11H5.00144C5.00151 10.4747 5.2061 9.95019 5.61472 9.55762C6.41128 8.79264 7.67769 8.81784 8.44284 9.61426C8.81536 10.0021 8.99854 10.5015 8.99851 11H11.9018L10.4272 8.44629C10.1201 7.91431 9.95849 7.31055 9.95847 6.69629V2.5C9.95847 1.67171 10.6302 1.00023 11.4585 1H12.4995C12.7755 1.00014 12.9995 1.22395 12.9995 1.5C12.9995 1.77605 12.7755 1.99986 12.4995 2H11.4585C11.1825 2.00023 10.9585 2.224 10.9585 2.5V6.69629C10.9585 7.13501 11.0741 7.56632 11.2934 7.94629L14.0669 12.75C14.644 13.7499 13.9224 14.9997 12.768 15H3.19089C2.03657 14.9997 1.31418 13.7498 1.89108 12.75L4.66452 7.94629C4.88388 7.56631 4.99946 7.13504 4.99948 6.69629V2.5C4.99948 2.22395 4.7755 2.00014 4.49948 2H3.49948C3.22373 1.99954 2.99948 1.77586 2.99948 1.5C2.99948 1.22414 3.22373 1.00046 3.49948 1H4.49948ZM7.72116 10.3076C7.33862 9.90943 6.70637 9.8969 6.30808 10.2793C6.10377 10.4756 6.00148 10.7376 6.00144 11H7.99851C7.99851 10.751 7.90737 10.5015 7.72116 10.3076Z"
1711+
/>
1712+
<path
1713+
fill={COLORS.default}
1714+
fillRule="evenodd"
1715+
clipRule="evenodd"
1716+
d="M8.50046 6C9.32871 6.00021 10.0005 6.6717 10.0005 7.5C10.0005 8.3283 9.32871 8.99979 8.50046 9C7.67203 9 7.00046 8.32843 7.00046 7.5C7.00046 6.67157 7.67203 6 8.50046 6ZM8.50046 7C8.22432 7 8.00046 7.22386 8.00046 7.5C8.00046 7.77614 8.22432 8 8.50046 8C8.77642 7.99979 9.00046 7.77601 9.00046 7.5C9.00046 7.22399 8.77642 7.00021 8.50046 7Z"
1717+
/>
1718+
<path
1719+
fill={COLORS.default}
1720+
d="M8.00046 1C8.55257 1.00021 9.00046 1.44784 9.00046 2C9.00046 2.55216 8.55257 2.99979 8.00046 3C7.44817 3 7.00046 2.55228 7.00046 2C7.00046 1.44772 7.44817 1 8.00046 1Z"
1721+
/>
1722+
</svg>
1723+
),
17031724
[UiIcons.OverviewPage]: (
17041725
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
17051726
<path

0 commit comments

Comments
 (0)