Skip to content

Commit 41582de

Browse files
NguyenThuyLanLanThuyNguyennhudinh0309
authored
Collection view: add tests for create and using collection view (#20667)
* write test for custom collection view test * add clean * Update tests/Umbraco.Tests.AcceptanceTest/tests/ExtensionRegistry/CollectionView.spec.ts Co-authored-by: Nhu Dinh <150406148+nhudinh0309@users.noreply.github.com> --------- Co-authored-by: Lan Nguyen Thuy <lnt@umbraco.dk> Co-authored-by: Nhu Dinh <150406148+nhudinh0309@users.noreply.github.com>
1 parent cfa32b2 commit 41582de

File tree

4 files changed

+313
-0
lines changed

4 files changed

+313
-0
lines changed

tests/Umbraco.Tests.AcceptanceTest/tests/ExtensionRegistry/AdditionalSetup/App_Plugins/my-collection-view/my-collection-view.js

Lines changed: 217 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/Umbraco.Tests.AcceptanceTest/tests/ExtensionRegistry/AdditionalSetup/App_Plugins/my-collection-view/my-collection-view.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"$schema": "../../umbraco-package-schema.json",
3+
"name": "My Collection View",
4+
"version": "0.1.0",
5+
"extensions": [
6+
{
7+
"type": "collectionView",
8+
"alias": "My.CollectionView.Document.Table",
9+
"name": "My Collection View Table",
10+
"element": "/App_Plugins/my-collection-view/my-collection-view.js",
11+
"meta": {
12+
"label": "Table",
13+
"icon": "icon-list",
14+
"pathName": "table"
15+
},
16+
"conditions": [
17+
{
18+
"alias": "Umb.Condition.CollectionAlias",
19+
"match": "Umb.Collection.Document"
20+
}
21+
]
22+
}
23+
]
24+
}

0 commit comments

Comments
 (0)