Skip to content
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

Call to Action! Functional Tests #2273

Closed
ErisDS opened this issue Feb 26, 2014 · 11 comments · Fixed by #2678
Closed

Call to Action! Functional Tests #2273

ErisDS opened this issue Feb 26, 2014 · 11 comments · Fixed by #2678
Labels
affects:admin Anything relating to Ghost Admin
Milestone

Comments

@ErisDS
Copy link
Member

ErisDS commented Feb 26, 2014

In /core/test/functional/admin/ we have a set of functional tests using Casper.js to visit the admin UI and test it out.

However, quite a lot of functionality is not properly tested.

Here are some areas that need tests (there are likely more). I would love to see PRs adding tests, even if it's just a single addition!

  • General
    • main menu navigation
    • top left user menu navigation
  • Content screen
    • left column
      • title
      • Draft / page / published label
      • featured star
      • green add new post button
    • right column
      • written / published by text & author name
      • edit post icon
      • post settings menu
      • delete modal
  • Editor screen
    • image uploads
    • markdown modal
    • tag menu
    • post settings menu
    • delete modal
    • publish button
  • Settings screen
    • image upload modals
    • form filling

It would be really really really good to get a bit more coverage to help with the ember migration

@ErisDS ErisDS added this to the 0.5 milestone Feb 26, 2014
@ErisDS ErisDS modified the milestones: Ember.js, 0.5 Feb 27, 2014
@m-tse
Copy link
Contributor

m-tse commented Mar 12, 2014

Hey @ErisDS I've coded up a functional test for settings/image upload modals, first commit/pull requeset! I got a

remote: Permission to TryGhost/Ghost.git denied to mattse.
fatal: unable to access 'https://github.com/TryGhost/Ghost/': The requested URL returned error: 403

when I tried to push, I guess I need permission first.

@halfdan
Copy link
Contributor

halfdan commented Mar 12, 2014

@MATTSE You need to push to your own fork and create a pull request. A read of our Git Workflow should help you to get this working :)

@AnneTheAgile
Copy link

hi! I'm looking around to see if there's something I can do. I just read about Mocha which sounds really great and I'd like to give it a whirl, so I referenced that in
Performance tests · Issue #1392

Related to that issue and this one, I cannot see that you have a public CI / Travis / build server that runs tests? Is there one running somewhere already or can that be gotten for free through Github? (Sorry if I am naive?!)
//AnneTheAgile

@halfdan
Copy link
Contributor

halfdan commented Apr 30, 2014

@AnneTheAgile Hello there. We have a public CI (see https://travis-ci.org/TryGhost/Ghost/builds) that runs all our tests.

@AnneTheAgile
Copy link

@halfdan , ty that's wonderful!

@ErisDS
Copy link
Member Author

ErisDS commented May 1, 2014

FYI you can access this by clicking the button in the readme which displays on https://github.com/TryGhost/Ghost and shows the status of the build. This is pretty common on GitHub :)

@jaswilli
Copy link
Contributor

jaswilli commented May 1, 2014

I meant to add this comment after the last PR but forgot...

Just as a point of reference, I went through the list in the first comment and I believe every bullet now has test coverage.

@AnneTheAgile
Copy link

@ErisDS , thank you for the Github-fu tip about CI!
@jaswilli , thank you for reporting the status, it did seem like some items were done.
Should this ticket be closed then, and possibly a new one written to describe any missing items?

@ErisDS
Copy link
Member Author

ErisDS commented May 1, 2014

I think this is pretty much ready to close yes, however I believe the markdown modal isn't tested currently, although I may be wrong.

If we can go back through the list one more time and double check that everything has coverage that'd be great.

@AnneTheAgile
Copy link

I am stepping out right now, but if it is not trivial for one of you checking the list for you might be an easy way to get my feet wet. I can write up which test is which one on the list.

@jaswilli
Copy link
Contributor

jaswilli commented May 2, 2014

@ErisDS - good catch, the markdown modal wasn't covered. Incoming PR with that test.

tigefa4u pushed a commit to tigefa4u/Ghost that referenced this issue Aug 3, 2022
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects:admin Anything relating to Ghost Admin
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants