~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/answers/stories/question-workflow.txt

  • Committer: Curtis Hovey
  • Date: 2009-11-11 22:17:17 UTC
  • mto: This revision was merged to the branch mainline in revision 9883.
  • Revision ID: curtis.hovey@canonical.com-20091111221717-8l2hwfi6idgolzl1
Updated the question index to follow the preferred layout for artefacts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
    # added and the status of the question.
16
16
    >>> def find_request_status(contents):
17
17
    ...     print extract_text(
18
 
    ...         find_tag_by_id(contents, 'registration'))
 
18
    ...         find_tag_by_id(contents, 'question-status'))
19
19
 
20
20
    >>> def  find_last_comment(contents):
21
21
    ...     soup = find_main_content(contents)
70
70
'Needs information':
71
71
 
72
72
    >>> find_request_status(support_browser.contents)
73
 
    Needs information...
 
73
    Status: Needs information
74
74
    >>> print_last_comment(support_browser.contents)
75
75
    Can you provide an example of an URL displaying the problem?
76
76
 
97
97
status:
98
98
 
99
99
    >>> print find_request_status(support_browser.contents)
100
 
    Needs information...
 
100
    Status: Needs information ...
101
101
    >>> print_last_comment(support_browser.contents)
102
102
    I forgot to mention, in the meantime here is a workaround...
103
103
 
128
128
discussion.
129
129
 
130
130
    >>> print find_request_status(owner_browser.contents)
131
 
    Open...
 
131
    Status: Open ...
132
132
    >>> print_last_comment(owner_browser.contents)
133
133
    The following SVG doesn't display properly:
134
134
    http://www.w3.org/2001/08/rdfweb/rdfweb-chaals-and-dan.svg
151
151
answer to the end of the discussion:
152
152
 
153
153
    >>> print find_request_status(support_browser.contents)
154
 
    Answered...
 
154
    Status: Answered ...
155
155
    >>> print_last_comment(support_browser.contents)
156
156
    New version of the firefox package are available with SVG support
157
157
    enabled. You can use apt-get or adept to upgrade.
189
189
'No Privileges Person' as the solver.
190
190
 
191
191
    >>> print find_request_status(owner_browser.contents)
192
 
    Solved Question #2, solved on ... by No Privileges Person...
 
192
    Status: Solved ...
193
193
 
194
194
Since no message can be provided when that button is clicked. A default
195
195
confirmation message was appended to the question discussion:
232
232
status:
233
233
 
234
234
    >>> print find_request_status(owner_browser.contents)
235
 
    Solved...
 
235
    Status: Solved ...
236
236
    >>> print_last_comment(owner_browser.contents)
237
237
    The example now displays correctly. Thanks.
238
238
 
255
255
its status back to 'Open'.
256
256
 
257
257
    >>> print find_request_status(owner_browser.contents)
258
 
    Open...
 
258
    Status: Open ...
259
259
    >>> print_last_comment(owner_browser.contents)
260
260
    Actually, there are still SVGs that do not display correctly.
261
261
    For example, the following
299
299
message as the "Best answer".
300
300
 
301
301
    >>> find_request_status(owner_browser.contents)
302
 
    Solved Question #2, solved on ... by Sample Person...
 
302
    Status: Solved ...
303
303
    >>> soup = find_tag_by_id(owner_browser.contents, 'portlet-details')
304
304
    >>> soup = find_main_content(owner_browser.contents)
305
305
    >>> bestAnswer = soup.first('img', {'title': 'Marked as best answer'})
320
320
 
321
321
    >>> owner_browser.getControl('This Solved My Problem').click()
322
322
    >>> find_request_status(owner_browser.contents)
323
 
    Solved Question #2, solved on ... by No Privileges Person...
 
323
    Status: Solved ...
324
324
 
325
325
The answer's message is also highlighted as the best answer.
326
326
 
389
389
    >>> carlos_browser = setupBrowser(auth='Basic carlos@canonical.com:test')
390
390
    >>> carlos_browser.open('http://launchpad.dev/firefox/+question/12')
391
391
    >>> print find_request_status(carlos_browser.contents)
392
 
    Open...
 
392
    Status: Open ...
393
393
 
394
394
    >>> answer_button_paragraph = find_tag_by_id(
395
395
    ...     carlos_browser.contents, 'answer-button-hint')
400
400
    ...     "There is a bug in that version. SMP is fine after upgrading.")
401
401
    >>> carlos_browser.getControl("Problem Solved").click()
402
402
    >>> print find_request_status(carlos_browser.contents)
403
 
    Solved...
 
403
    Status: Solved ...
404
404
 
405
405
    >>> content = find_main_content(carlos_browser.contents)
406
406
    >>> messages = content.findAll('div', 'informational message')