mirror of
https://github.com/discourse/discourse.git
synced 2024-12-24 08:13:46 +08:00
d2e4b32c87
Why this change? Currently, we do not have an easy way to test themes and theme components using Rails system tests. While we support QUnit acceptance tests for themes and theme components, QUnit acceptance tests stubs out the server and setting up the fixtures for server responses is difficult and can lead to a frustrating experience. System tests on the other hand allow authors to set up the test fixtures using our fabricator system which is much easier to use. What does this change do? In order for us to allow authors to run system tests with their themes installed, we are adding a `upload_theme` helper that is made available when writing system tests. The `upload_theme` helper requires a single `directory` parameter where `directory` is the directory of the theme locally and returns a `Theme` record.
21 lines
449 B
JSON
21 lines
449 B
JSON
{
|
|
"name": "Header Icons",
|
|
"about_url": "abouturl",
|
|
"license_url": "licenseurl",
|
|
"component": false,
|
|
"assets": {
|
|
"logo": "assets/logo.png"
|
|
},
|
|
"color_schemes": {
|
|
"Orphan Color Scheme": {
|
|
"header_primary": "F0F0F0",
|
|
"header_background": "1E1E1E",
|
|
"tertiary": "858585"
|
|
},
|
|
"Theme Color Scheme": {
|
|
"header_primary": "F0F0F0",
|
|
"header_background": "1E1E1E",
|
|
"tertiary": "858585"
|
|
}
|
|
}
|
|
} |