Closed Bug 667658 Opened 15 years ago Closed 14 years ago

support rich formatting in test case steps

Categories

(Mozilla QA Graveyard :: MozTrap, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: camd, Unassigned)

References

Details

Sometimes it would be good to be able to bold or italicize some text in the steps. We could do this in HTML, or perhaps some other rich text language.
A Pivotal Tracker story has been created for this Bug: http://www.pivotaltracker.com/story/show/15991015
Cameron Dawson added a comment in Pivotal Tracker: support line breaks. Perhaps using markdown for all of this.
Cameron Dawson added a comment in Pivotal Tracker: I wonder if we'd want to limit the markdown support. We currently show instruction as bold and expected as italics. If we start messing with that, it could get very inconsistent.
Carl Meyer added a comment in Pivotal Tracker: Doing partial markdown support could be tricky. I'd say depending what the real use cases are, we either do full Markdown and consider it a "you break it, you get to keep the pieces" situation (i.e. just don't use formatting in steps if it doesn't look good), or we don't do Markdown at all for steps/expected and just hotlink URLs and convert linebreaks to HTML linebreaks (I think Django provides built-in filters for both of those).
Cameron Dawson added a comment in Pivotal Tracker: by partial support, I meant consider supporting it only in the description and not in these steps. Though in the steps would be nice, too. But description markdown is in a separate story. adding the |markdown to the item in the template nullifies the existing bolding on instruction and italics on expected. So perhaps Eric can chime in how he feels about it.
Eric Meyer changed story state to started in Pivotal Tracker
Eric Meyer added a comment in Pivotal Tracker: this is now on branch markdown-steps
Cameron Dawson added a comment in Pivotal Tracker: This is pretty cool. Not sure I like the >> thing though. Looks odd on the runtests page. Perhaps if it wasn't on the instruction part, and was only on the expected part it would look better.
Cameron Dawson added a comment in Pivotal Tracker: But, just to say, this is an awesome feature. I mentioned it in our QA meeting today and people were stoked about it. Been missing from Litmus.
Eric Meyer added a comment in Pivotal Tracker: Changed the use of '»'.
Cameron Dawson added a comment in Pivotal Tracker: Looks great! Go with it, man! :)
Eric Meyer added a comment in Pivotal Tracker: I've done what I can here. If it needs something more, I think that'd be Carl?
Cameron Dawson added a comment in Pivotal Tracker: yeah, I think it's all good. Carl: ready to deploy!
Carl Meyer added a comment in Pivotal Tracker: There are certainly ways that people can make things look pretty funky with this; for instance if you use a list within an instruction or expected result, the list bullets/numbers overlay the >> and/or the step number. I think ultimately we'll just have to fix these things on a per-case basis, if they're legitimate use cases (is a list of things inside an expected result a legitimate use case?), so I won't hold this up for that. Do we want any UI clues that markdown is allowed? Or we're counting on the documentation to fix that? How should people discover this feature? Cam, since you said this was ready to go I'll go ahead and deliver it, and let you either reject it or create a new bug if you want some UI help added.
Carl Meyer changed story state to finished in Pivotal Tracker
Carl Meyer changed story state to delivered in Pivotal Tracker
Cameron Dawson changed story state to accepted in Pivotal Tracker
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Bumping to verified as [qa-] due to age of bug, shipped.
Status: RESOLVED → VERIFIED
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.