New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression test for themes #8015
Conversation
…compiling to CSS) They are useless since box-shadow is supported in all browsers except IE 8 (in which using a prefix doesn't help anyway).
I removed the line entirely: - I couldn't find the matching variable (was most likely removed since then) - if the line was broken before (silently ignored) then it's like it didn't exist
This test enables the example theme and checks that it works.
Are there any themes other than Morpheus that we maintain (I know there used to be PleineLune, but I think we stopped maintaining it)? If so, it would be good if we added UI tests for them (if we don't have them already). |
+1 - I think it's not a problem as it is only small risk
👍 for the idea. The test enables theme |
PleineLune was deprecated, and there are no other theme that we need to maintain (at the moment) . |
@mattab have a look at this: 7974635#commitcomment-11414730 |
What about taking a screenshot of the UI demo page? Will the theme be applied there? Also, do you intend to customize the theme more (ie, use more variables) or is this it? |
Yes it should definitely apply there. I've added a test for that page.
No, we could decide to test every variable but right now I don't think it's very urgent/a priority. This test is mostly about checking that it works (e.g. on master themes don't work) |
Screenshot tests are failing, I think phantomjs doesn't support |
Following discussion, TODO:
|
… the pull request introduces absolutely no visual change
Shadows and tests are fixed, this PR introduces no visual change: http://builds-artifacts.piwik.org/ui-tests.fixing-themes/12946.7/screenshot-diffs/diffviewer.html Ready for review and merge. |
Add regression UI test for themes. Uses ExampleTheme to test theming still works (in general).
Themes were broken because of new code now affected by this existing bug: leafo/lessphp#302. I bumped to v0.5.0 and checked the changelog, it was one of the 2 only significant change. The only other significant change is that syntax errors in Less now throw an exception (which allowed to fix a few existing bugs in our Less files). I think it's good to have (definitely help in when developing, I know I've raged a lot against mixins like
.box-shadow()
that weren't doing working without any explanation), however it might break plugins that have errors in their less files. Do we consider that a problem or a very small risk (for example we only had 2 Less bugs in our whole codebase)?I added a UI test that checks that themes work so that we avoid any regression in the future.
Edit: FYI I removed the
.box-shadow
mixins for the following reasons: