Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wintercms/wn-test-plugin
Playground for Winter CMS.
https://github.com/wintercms/wn-test-plugin
hacktoberfest
Last synced: about 1 month ago
JSON representation
Playground for Winter CMS.
- Host: GitHub
- URL: https://github.com/wintercms/wn-test-plugin
- Owner: wintercms
- License: mit
- Created: 2021-03-04T03:28:03.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-25T17:02:12.000Z (9 months ago)
- Last Synced: 2024-04-14T04:55:43.893Z (8 months ago)
- Topics: hacktoberfest
- Language: PHP
- Homepage:
- Size: 319 KB
- Stars: 13
- Watchers: 8
- Forks: 6
- Open Issues: 10
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-wintercms - Winter.Test - Playground for features available in Winter CMS. (Uncategorized / Uncategorized)
README
# Test Plugin
UI test plugin for Winter CMS, provides many different sample records and backend interfaces for testing the UI interactions and functionality in the Winter CMS backend.
## Installation
This plugin is available for installation via [Composer](http://getcomposer.org/).
```bash
composer require winter/wn-test-plugin
```After installing the plugin you will need to run the migrations and (if you are using a [public folder](https://wintercms.com/docs/develop/docs/setup/configuration#using-a-public-folder)) [republish your public directory](https://wintercms.com/docs/develop/docs/console/setup-maintenance#mirror-public-files).
```bash
php artisan migrate
```## Functionality
The following sections are explored, tested and demonstrated along with a list of the features used:
### Test 1: People
A Person "Has One" Phone (One to one relationship)
1. Relation Controller
1. Record Finder
1. Proxy Form fields
1. Date pickers
1. Context-based Form fields
1. List search policies `@todo`### Test 2: Posts
A Post "Has Many" Comments (One to many relationship)
1. Relation Controller
1. Popup-based Form fields
1. Rich Editor
1. Dual Form Controller and List Controller
1. HTML in comments
1. Custom Delete workflow
1. Repeater fields in comments popup### Test 3: Users
User "Belongs To Many" Roles (Many to many relationship)
1. Relation Controller (Standard, Pivot data, Pivot model)
1. Image Uploaders (Single, Multi, File, Image)
1. Number field
1. No click list column
1. Custom File model
1. Form field partial
1. Tag List in relation mode### Test 4: Countries
A Country "Has Many" Posts "Through" a User (Has many through relationship)
1. Checkbox list
1. Default form field values
1. Field dependency and filtering
1. Repeater fields
1. Tabs empty with no fields### Test 5: Reviews
1. Reviews "Morph To" Plugins and Themes as Product (Polymorphic relationships)
1. Meta "Morph To" Plugins and Themes as Product (Polymorphic relationships)
1. Plugins and Themes "Morph Many" Reviews
1. Plugins and Themes "Morph One" Meta
1. Plugins should not create when Meta validation fails.### Test 6: Galleries
1. Galleries are "Morphed By Many" Posts
1. Posts "Morph To Many" Galleries### Test 7: Trees
1. A Member uses a simple tree (parent-child) structure.
1. A Category uses a simple tree structure, with sorting.
1. A Channel uses a nested set tree structure.### Test 8: Attributes
An Attribute is a single generic model with many relationship types.
1. Posts "Belong To" (Attribute) Status (`general.status`).
1. Countries "Belong To Many" (Attribute) Types (`general.types`).## Tests that need attention
- An attach relation when required inside a tab does not make the tab active.
- Proxy fields throw a nasty error when the relation is non existant.
- Record Finder does not incorporate deferred bindings.
- HasOne relations acting as HasMany will break the list completely.
- Pivot model with required field doesn't show the asterisk on the form.
## Incorporating functional tests
- All relation controllers
- Test that input preset API works on fields
- Test that trigger API works on fields