~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/answers/stories/question-reject-and-change-status.txt

Merge from trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
 
51
51
its status is changed to 'Invalid';
52
52
 
53
 
    >>> question_portlet = find_portlet(
54
 
    ...     admin_browser.contents, 'Mozilla Firefox question #2')
55
 
    >>> print question_portlet.find('b', text='Status:').next.strip()
56
 
    Invalid
 
53
    >>> def print_question_status(browser):
 
54
    ...     print extract_text(
 
55
    ...         find_tag_by_id(browser.contents, 'question-details'))
 
56
 
 
57
    >>> print_question_status(admin_browser)
 
58
    Invalid ...
57
59
 
58
60
and the rejection message is added to the question board.
59
61
 
133
135
 
134
136
its status is updated;
135
137
 
136
 
    >>> question_portlet = find_portlet(
137
 
    ...     admin_browser.contents, 'Mozilla Firefox question #2')
138
 
    >>> print question_portlet.find('b', text='Status:').next.strip()
139
 
    Open
 
138
    >>> print_question_status(admin_browser)
 
139
    Open ...
140
140
 
141
141
and the explanation message is added to the question discussion:
142
142