-
Type:
Technical Testing
-
Status: Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Content Display Widgets > Web Content Display widget
-
Labels:None
Test Cases
Case 1:
There is Friendly URL field shown in the DDM template panel when select the Basic Web Content structure
- Site admin > Content & Data > Web Content > Templates tab
- Add a template
- Select Basic Web Content as Structure
- Assert Field section is shown in the DDM template panel
- Expand the Field section
- Assert Friendly URL is shown in the Field section
- Click the Friendly URL
- Assert ${friendlyURLs[themeDisplay.getLanguageId()]} is shown in source field
Case 2:
There is Friendly URL field shown in the DDM template panel when select the custom structure
- Site admin > Content & Data > Web Content > Structures tab
- Add a structure with Text field
- Site admin > Content & Data > Web Content > Templates tab
- Add a template
- Select new structure as Structure
- Assert Field section is shown in the DDM template panel
- Expand the Field section
- Assert Friendly URL is shown in the Field section
- Click the Friendly URL
- Assert ${friendlyURLs[themeDisplay.getLanguageId()]} is shown in source field
Case 3:
The Friendly URL of WC is shown in WCD when select template with Friendly URL field and it is displayed in DPT with the Display Page Content fragment
- Site admin > Content & Data > Web Content > Templates tab
- Add a template
- Select Basic Web Content as Structure
- Click the Friendly URL from Field section
- Publish
- Site admin > Site Builder > Page Templates > Display Page Templates
- Add a DPT with Web Content Article and Basic Web Content
- Add a Display Page Content fragment to DPT
- Publish
- Site admin > Content & Data > Web Content > Web Content tab
- Add a WC based on Basic Web Content
- Select new template as Default Template
- Select new DPT as Specific Display Page Template
- Publish
- Add a widget page
- Add a WCD to page
- Select new WC
- Assert http://localhost:8080/web/guest/w/${title} is shown in WCD
Case 4:
The Friendly URL of WC based on custom structure is shown in WCD when select template with Friendly URL field and it is displayed in DPT that is marked as Default
- Site admin > Content & Data > Web Content > Structures tab
- Add a structure with Text field
- Site admin > Content & Data > Web Content > Templates tab
- Add a template
- Select new structure as Structure
- Click the Friendly URL from Field section
- Publish
- Site admin > Site Builder > Page Templates > Display Page Templates
- Add a DPT with Web Content Article and new Structure
- Add a Display Page Content fragment to DPT
- Publish
- Mark the DPT as Default
- Site admin > Content & Data > Web Content > Web Content tab
- Add a WC based on new structure
- Select new template as Default Template
- Assert new DPT is shown in the Default Display Page Template field
- Publish
- Add a widget page
- Add a WCD to page
- Select new WC
- Assert http://localhost:8080/web/guest/w/${title} is shown in WCD
Case 5:
The Friendly URL of WC is shown in WCD when select template with Friendly URL field and it is displayed in DPT with the Asset Publisher widget
- Site admin > Content & Data > Web Content > Templates tab
- Add a template
- Select Basic Web Content as Structure
- Click the Friendly URL from Field section
- Publish
- Site admin > Site Builder > Page Templates > Display Page Templates
- Add a DPT with Web Content Article and Basic Web Content
- Add an Asset Publisher widget to DPT
- Click ellipsis button of AP
- Set as the Default Asset Publisher for This Page
- Publish
- Site admin > Content & Data > Web Content > Web Content tab
- Add a WC based on Basic Web Content
- Select new template as Default Template
- Select new DPT as Specific Display Page Template
- Publish
- Add a widget page
- Add a WCD to page
- Select new WC
- Assert http://localhost:8080/web/guest/w/${title} is shown in WCD
Case 6:
The localized Friendly URL of WC is shown in WCD when select template with Friendly URL field and it is displayed in DPT
- Site admin > Content & Data > Web Content > Templates tab
- Add a template
- Select Basic Web Content as Structure
- Click the Friendly URL from Field section
- Publish
- Site admin > Site Builder > Page Templates > Display Page Templates
- Add a DPT with Web Content Article and Basic Web Content
- Add a Display Page Content fragment to DPT
- Publish
- Site admin > Content & Data > Web Content > Web Content tab
- Add a WC based on Basic Web Content
- Select new template as Default Template
- Select new DPT as Specific Display Page Template
- Type wcinenglish in Friendly URL field
- Select es-ES in Language Selector
- Type wcinspanish in Friendly URL field
- Publish
- Add a widget page
- Add a WCD to page
- Add a Language Selector to page
- Select new WC
- Assert http://localhost:8080/web/guest/w/wcinenglish is shown in WCD
- Select es-ES in Language Selector
- Assert http://localhost:8080/web/guest/w/wcinspanish is shown in WCD