Comments (19)
Hey,
I fancy giving this a bash if that's okay? I'm a first-timer but have done some test-writing before so think I'd be able to give this a decent shot!
Patrick
from esfiddle.
@joshghent & @patrick1011 I suggest using Mocha and Chai to test the front end also. We are using that at work, and it seems to do the job pretty well.
from esfiddle.
@tarang9211 @patrick1011 Yeah use whatever framework is easiest. As long as they work!
from esfiddle.
Great - i'll use Mocha!
from esfiddle.
@joshghent @tarang9211 Just a quick update - I've written some tests in Mocha + Chai and Selenium to test the layout buttons and github links work. It's going well.
One question though: what would you say constitutes a test for the dropdowns? That the editor changes background colour/content based on what's clicked (themes/examples)?
from esfiddle.
@patrick1011 I mean in an ideal world then we would make sure that the correct classes get applied when changing the theme, but I think if you just add a test for one theme and then check it works correctly (i.e., the class has been applied, it doesn't matter about the colors that the editor now is) will be fine, thanks :)
from esfiddle.
@patrick1011 Hey there, have you had chance to work on this at all? It's ok if not, just want to check in and see if this is still in the works 👍
from esfiddle.
@patrick1011 sorry for being so late to the party. In such cases, I have tested for the presence of the class name and that works. Let me know if you run into any issues!
from esfiddle.
@patrick1011 I'd advice using something like this http://nightwatchjs.org/
Mocha doesn't seem to have great syntax for checking css without mocking loads of stuff.
from esfiddle.
@joshghent I think we should use mocha for the tests and then supercharge later with some CSS regression tests with https://github.com/Huddle/PhantomCSS
The idea is that I think those two things should be split, unit tests and layout tests, what do you think ?
from esfiddle.
@SaraVieira Agreed, split them down. I agree with the different types of testing as well. Good to cover all aspects.
from esfiddle.
I'll create an issue for the Regression tests and assign it to me, because I have been meaning to play with that for a while
@patrick1011 if you are still working on those mocha tests as unit tests that would be awesome and them I'll start on the CSS tests from the redesign branch
from esfiddle.
Sounds good @SaraVieira. Look forward to hearing about your progress.
from esfiddle.
@patrick1011 are you still working on this one? If not, no worries, just let us know and I will probably take it over.
from esfiddle.
@collinmesser Sorry I didn't pick up on this one. I'd say that it's free game. We'd love to get this checked off!
from esfiddle.
Is this issue still open? or some testing still left in front-end? I would love to take a shot at it!
Abu
from esfiddle.
@AbubakarSaad Yes sure thing! Go ahead! We'd love to have your help and would great appreciate this being done! 👍
from esfiddle.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from esfiddle.
@AbubakarSaad Hey there, I kind of let this issue drift but wanted to check in to see if you were doing ok with your PR and this issue? Can I or anyone else in the team help? Contact me on gitter if you need any assistance! 👍
If you no longer have time to work on it, that's fine too. We appreciate people generously donate their precious free time to this!
from esfiddle.
Related Issues (20)
- Create About Page
- Dark/Light mode switch doesn't update theme dropdown element HOT 2
- Switching from Dark to Light mode and refreshing causes bug
- New Maintainer HOT 13
- Port to GitHub Actions HOT 1
- Fix Embedded View and Create test case HOT 1
- Fix tweet share button HOT 1
- Fix Github gist export HOT 1
- New Code Examples! - On going project! HOT 3
- Improve mobile view HOT 1
- Create github actions Docker pipeline HOT 6
- Create new homepage HOT 1
- Improve fiddle site speed - Multiple PR's welcome! HOT 1
- Change master branch to main HOT 2
- Resolve deprecated dependencies (multiple PR's welcome) HOT 4
- Minify Javascript source HOT 5
- Add Lighthouse CI HOT 2
- Remove unused Javascript HOT 2
- ES7 -2017 - Async-await best practice example HOT 4
- esfiddle.net website is not working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esfiddle.