Merge lp://qastaging/~deryck/launchpad/comment-button-capitalization-415253 into lp://qastaging/launchpad
- comment-button-capitalization-415253
- Merge into devel
Proposed by
Deryck Hodge
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | not available | ||||
Proposed branch: | lp://qastaging/~deryck/launchpad/comment-button-capitalization-415253 | ||||
Merge into: | lp://qastaging/launchpad | ||||
Diff against target: | None lines | ||||
To merge this branch: | bzr merge lp://qastaging/~deryck/launchpad/comment-button-capitalization-415253 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Abel Deuring (community) | Approve | ||
Review via email: mp+10848@code.qastaging.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
Deryck Hodge (deryck) wrote : | # |
Revision history for this message
Abel Deuring (adeuring) wrote : | # |
Hi Deryck,
Thanks for fixing this.
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'lib/lp/bugs/browser/bugmessage.py' | |||
2 | --- lib/lp/bugs/browser/bugmessage.py 2009-08-20 02:46:12 +0000 | |||
3 | +++ lib/lp/bugs/browser/bugmessage.py 2009-08-28 14:31:15 +0000 | |||
4 | @@ -54,7 +54,7 @@ | |||
5 | 54 | self.addError("Either a comment or attachment " | 54 | self.addError("Either a comment or attachment " |
6 | 55 | "must be provided.") | 55 | "must be provided.") |
7 | 56 | 56 | ||
9 | 57 | @action(u"Post comment", name='save') | 57 | @action(u"Post Comment", name='save') |
10 | 58 | def save_action(self, action, data): | 58 | def save_action(self, action, data): |
11 | 59 | """Add the comment and/or attachment.""" | 59 | """Add the comment and/or attachment.""" |
12 | 60 | 60 | ||
13 | 61 | 61 | ||
14 | === modified file 'lib/lp/bugs/stories/bugattachments/10-add-bug-attachment.txt' | |||
15 | --- lib/lp/bugs/stories/bugattachments/10-add-bug-attachment.txt 2009-08-06 14:55:50 +0000 | |||
16 | +++ lib/lp/bugs/stories/bugattachments/10-add-bug-attachment.txt 2009-08-28 14:31:15 +0000 | |||
17 | @@ -25,7 +25,7 @@ | |||
18 | 25 | >>> user_browser.getControl('Description').value = ' Some information ' | 25 | >>> user_browser.getControl('Description').value = ' Some information ' |
19 | 26 | >>> user_browser.getControl( | 26 | >>> user_browser.getControl( |
20 | 27 | ... name="field.comment").value = 'Added some information' | 27 | ... name="field.comment").value = 'Added some information' |
22 | 28 | >>> user_browser.getControl('Post comment').click() | 28 | >>> user_browser.getControl('Post Comment').click() |
23 | 29 | 29 | ||
24 | 30 | After we added the attachment, we get redirected to the bug page. | 30 | After we added the attachment, we get redirected to the bug page. |
25 | 31 | 31 | ||
26 | @@ -61,7 +61,7 @@ | |||
27 | 61 | ... bar_file, 'text/plain', 'bar.txt') | 61 | ... bar_file, 'text/plain', 'bar.txt') |
28 | 62 | >>> user_browser.getControl('Description').value = '' | 62 | >>> user_browser.getControl('Description').value = '' |
29 | 63 | >>> user_browser.getControl(name="field.comment").value = '' | 63 | >>> user_browser.getControl(name="field.comment").value = '' |
31 | 64 | >>> user_browser.getControl('Post comment').click() | 64 | >>> user_browser.getControl('Post Comment').click() |
32 | 65 | >>> user_browser.url | 65 | >>> user_browser.url |
33 | 66 | 'http://bugs.launchpad.dev/firefox/+bug/1' | 66 | 'http://bugs.launchpad.dev/firefox/+bug/1' |
34 | 67 | 67 | ||
35 | 68 | 68 | ||
36 | === modified file 'lib/lp/bugs/stories/bugattachments/40-search-bug-attachments.txt' | |||
37 | --- lib/lp/bugs/stories/bugattachments/40-search-bug-attachments.txt 2009-08-06 14:55:50 +0000 | |||
38 | +++ lib/lp/bugs/stories/bugattachments/40-search-bug-attachments.txt 2009-08-28 14:31:15 +0000 | |||
39 | @@ -10,7 +10,7 @@ | |||
40 | 10 | >>> user_browser.getControl("Description").value = "Some information." | 10 | >>> user_browser.getControl("Description").value = "Some information." |
41 | 11 | >>> user_browser.getControl( | 11 | >>> user_browser.getControl( |
42 | 12 | ... name="field.comment").value = "Added some information." | 12 | ... name="field.comment").value = "Added some information." |
44 | 13 | >>> user_browser.getControl("Post comment").click() | 13 | >>> user_browser.getControl("Post Comment").click() |
45 | 14 | 14 | ||
46 | 15 | And a patch... | 15 | And a patch... |
47 | 16 | 16 | ||
48 | @@ -24,7 +24,7 @@ | |||
49 | 24 | >>> user_browser.getControl("Description").value = "A patch." | 24 | >>> user_browser.getControl("Description").value = "A patch." |
50 | 25 | >>> user_browser.getControl( | 25 | >>> user_browser.getControl( |
51 | 26 | ... name="field.comment").value = "This patch fixes the bug." | 26 | ... name="field.comment").value = "This patch fixes the bug." |
53 | 27 | >>> user_browser.getControl("Post comment").click() | 27 | >>> user_browser.getControl("Post Comment").click() |
54 | 28 | 28 | ||
55 | 29 | And another patch... | 29 | And another patch... |
56 | 30 | 30 | ||
57 | @@ -37,7 +37,7 @@ | |||
58 | 37 | >>> user_browser.getControl("Description").value = "A patch." | 37 | >>> user_browser.getControl("Description").value = "A patch." |
59 | 38 | >>> user_browser.getControl( | 38 | >>> user_browser.getControl( |
60 | 39 | ... name="field.comment").value = "This patch fixes the bug." | 39 | ... name="field.comment").value = "This patch fixes the bug." |
62 | 40 | >>> user_browser.getControl("Post comment").click() | 40 | >>> user_browser.getControl("Post Comment").click() |
63 | 41 | 41 | ||
64 | 42 | And now we'll search for patches for firefox bugs. | 42 | And now we'll search for patches for firefox bugs. |
65 | 43 | 43 | ||
66 | 44 | 44 | ||
67 | === modified file 'lib/lp/bugs/stories/bugattachments/xx-delete-bug-attachment.txt' | |||
68 | --- lib/lp/bugs/stories/bugattachments/xx-delete-bug-attachment.txt 2009-08-06 14:55:50 +0000 | |||
69 | +++ lib/lp/bugs/stories/bugattachments/xx-delete-bug-attachment.txt 2009-08-28 14:31:15 +0000 | |||
70 | @@ -10,7 +10,7 @@ | |||
71 | 10 | >>> user_browser.getControl('Attachment').add_file( | 10 | >>> user_browser.getControl('Attachment').add_file( |
72 | 11 | ... foo_file, 'text/plain', 'foo.txt') | 11 | ... foo_file, 'text/plain', 'foo.txt') |
73 | 12 | >>> user_browser.getControl('Description').value = 'Great deal' | 12 | >>> user_browser.getControl('Description').value = 'Great deal' |
75 | 13 | >>> user_browser.getControl('Post comment').click() | 13 | >>> user_browser.getControl('Post Comment').click() |
76 | 14 | 14 | ||
77 | 15 | The attachment is now visible on the bug page. | 15 | The attachment is now visible on the bug page. |
78 | 16 | 16 | ||
79 | 17 | 17 | ||
80 | === modified file 'lib/lp/bugs/stories/bugattachments/xx-display-filesize-attachment.txt' | |||
81 | --- lib/lp/bugs/stories/bugattachments/xx-display-filesize-attachment.txt 2009-08-07 08:56:22 +0000 | |||
82 | +++ lib/lp/bugs/stories/bugattachments/xx-display-filesize-attachment.txt 2009-08-28 14:31:15 +0000 | |||
83 | @@ -13,7 +13,7 @@ | |||
84 | 13 | ... foo_file, "text/plain", "foo.txt") | 13 | ... foo_file, "text/plain", "foo.txt") |
85 | 14 | >>> user_browser.getControl("Description").value = "description text" | 14 | >>> user_browser.getControl("Description").value = "description text" |
86 | 15 | >>> user_browser.getControl(name="field.comment").value = "comment comment" | 15 | >>> user_browser.getControl(name="field.comment").value = "comment comment" |
88 | 16 | >>> user_browser.getControl("Post comment").click() | 16 | >>> user_browser.getControl("Post Comment").click() |
89 | 17 | >>> user_browser.url | 17 | >>> user_browser.url |
90 | 18 | 'http://bugs.launchpad.dev/firefox/+bug/1' | 18 | 'http://bugs.launchpad.dev/firefox/+bug/1' |
91 | 19 | 19 | ||
92 | @@ -44,7 +44,7 @@ | |||
93 | 44 | ... foo_file, "text/plain", "foo.txt") | 44 | ... foo_file, "text/plain", "foo.txt") |
94 | 45 | >>> user_browser.getControl("Description").value = "description text" | 45 | >>> user_browser.getControl("Description").value = "description text" |
95 | 46 | >>> user_browser.getControl(name="field.comment").value = "comment comment" | 46 | >>> user_browser.getControl(name="field.comment").value = "comment comment" |
97 | 47 | >>> user_browser.getControl("Post comment").click() | 47 | >>> user_browser.getControl("Post Comment").click() |
98 | 48 | >>> user_browser.url | 48 | >>> user_browser.url |
99 | 49 | 'http://bugs.launchpad.dev/firefox/+bug/1' | 49 | 'http://bugs.launchpad.dev/firefox/+bug/1' |
100 | 50 | 50 | ||
101 | 51 | 51 | ||
102 | === modified file 'lib/lp/bugs/stories/bugs/80-add-comment.txt' | |||
103 | --- lib/lp/bugs/stories/bugs/80-add-comment.txt 2009-08-06 13:51:38 +0000 | |||
104 | +++ lib/lp/bugs/stories/bugs/80-add-comment.txt 2009-08-28 14:31:15 +0000 | |||
105 | @@ -17,7 +17,7 @@ | |||
106 | 17 | ... 'http://localhost/debian/+source/mozilla-firefox/+bug/2') | 17 | ... 'http://localhost/debian/+source/mozilla-firefox/+bug/2') |
107 | 18 | >>> user_browser.getControl(name='field.comment').value = ( | 18 | >>> user_browser.getControl(name='field.comment').value = ( |
108 | 19 | ... 'This is a test comment.') | 19 | ... 'This is a test comment.') |
110 | 20 | >>> user_browser.getControl('Post comment', index=-1).click() | 20 | >>> user_browser.getControl('Post Comment', index=-1).click() |
111 | 21 | 21 | ||
112 | 22 | >>> user_browser.url | 22 | >>> user_browser.url |
113 | 23 | 'http://bugs.launchpad.dev/debian/+source/mozilla-firefox/+bug/2' | 23 | 'http://bugs.launchpad.dev/debian/+source/mozilla-firefox/+bug/2' |
114 | 24 | 24 | ||
115 | === modified file 'lib/lp/bugs/stories/bugs/xx-add-comment-distribution-no-current-release.txt' | |||
116 | --- lib/lp/bugs/stories/bugs/xx-add-comment-distribution-no-current-release.txt 2009-08-06 13:51:38 +0000 | |||
117 | +++ lib/lp/bugs/stories/bugs/xx-add-comment-distribution-no-current-release.txt 2009-08-28 14:31:15 +0000 | |||
118 | @@ -12,7 +12,7 @@ | |||
119 | 12 | 'http://bugs.launchpad.dev/gentoo/+bug/...' | 12 | 'http://bugs.launchpad.dev/gentoo/+bug/...' |
120 | 13 | 13 | ||
121 | 14 | >>> user_browser.getControl(name='field.comment').value = 'A new comment.' | 14 | >>> user_browser.getControl(name='field.comment').value = 'A new comment.' |
123 | 15 | >>> user_browser.getControl('Post comment', index=-1).click() | 15 | >>> user_browser.getControl('Post Comment', index=-1).click() |
124 | 16 | 16 | ||
125 | 17 | >>> for comment_div in find_tags_by_class( | 17 | >>> for comment_div in find_tags_by_class( |
126 | 18 | ... user_browser.contents, 'boardCommentBody'): | 18 | ... user_browser.contents, 'boardCommentBody'): |
127 | 19 | 19 | ||
128 | === modified file 'lib/lp/bugs/stories/bugs/xx-add-comment-with-bugwatch-and-cve.txt' | |||
129 | --- lib/lp/bugs/stories/bugs/xx-add-comment-with-bugwatch-and-cve.txt 2009-08-06 13:51:38 +0000 | |||
130 | +++ lib/lp/bugs/stories/bugs/xx-add-comment-with-bugwatch-and-cve.txt 2009-08-28 14:31:15 +0000 | |||
131 | @@ -11,7 +11,7 @@ | |||
132 | 11 | ... described here http://some.bugzilla/show_bug.cgi?id=9876 | 11 | ... described here http://some.bugzilla/show_bug.cgi?id=9876 |
133 | 12 | ... See also CVE-1991-9911 | 12 | ... See also CVE-1991-9911 |
134 | 13 | ... ''') | 13 | ... ''') |
136 | 14 | >>> user_browser.getControl('Post comment', index=-1).click() | 14 | >>> user_browser.getControl('Post Comment', index=-1).click() |
137 | 15 | 15 | ||
138 | 16 | >>> user_browser.url | 16 | >>> user_browser.url |
139 | 17 | 'http://bugs.launchpad.dev/debian/+source/mozilla-firefox/+bug/1' | 17 | 'http://bugs.launchpad.dev/debian/+source/mozilla-firefox/+bug/1' |
140 | @@ -40,7 +40,7 @@ | |||
141 | 40 | ... u'\xabhttps://answers.launchpad.net/ubuntu\xbb is not a linked bug ' | 40 | ... u'\xabhttps://answers.launchpad.net/ubuntu\xbb is not a linked bug ' |
142 | 41 | ... u'but https://bugzilla.example.org/show_bug.cgi?id=1235555 ' | 41 | ... u'but https://bugzilla.example.org/show_bug.cgi?id=1235555 ' |
143 | 42 | ... u'is.'.encode('utf-8')) | 42 | ... u'is.'.encode('utf-8')) |
145 | 43 | >>> user_browser.getControl('Post comment', index=-1).click() | 43 | >>> user_browser.getControl('Post Comment', index=-1).click() |
146 | 44 | >>> user_browser.url | 44 | >>> user_browser.url |
147 | 45 | 'http://bugs.launchpad.dev/debian/+source/mozilla-firefox/+bug/1' | 45 | 'http://bugs.launchpad.dev/debian/+source/mozilla-firefox/+bug/1' |
148 | 46 | 46 | ||
149 | 47 | 47 | ||
150 | === modified file 'lib/lp/bugs/stories/bugs/xx-bug-activity.txt' | |||
151 | --- lib/lp/bugs/stories/bugs/xx-bug-activity.txt 2009-08-27 08:32:39 +0000 | |||
152 | +++ lib/lp/bugs/stories/bugs/xx-bug-activity.txt 2009-08-28 14:31:15 +0000 | |||
153 | @@ -53,7 +53,7 @@ | |||
154 | 53 | ... 'http://bugs.launchpad.dev/redfish/+bug/15/+addcomment') | 53 | ... 'http://bugs.launchpad.dev/redfish/+bug/15/+addcomment') |
155 | 54 | >>> user_browser.getControl(name='field.comment').value = ( | 54 | >>> user_browser.getControl(name='field.comment').value = ( |
156 | 55 | ... "Here's a comment for testing, like.") | 55 | ... "Here's a comment for testing, like.") |
158 | 56 | >>> user_browser.getControl('Post comment').click() | 56 | >>> user_browser.getControl('Post Comment').click() |
159 | 57 | >>> print_comments(user_browser.contents) | 57 | >>> print_comments(user_browser.contents) |
160 | 58 | Bug Watch Updater | 58 | Bug Watch Updater |
161 | 59 | on 2007-12-18 | 59 | on 2007-12-18 |
162 | 60 | 60 | ||
163 | === modified file 'lib/lp/bugs/stories/bugs/xx-bug-comment-attach-file.txt' | |||
164 | --- lib/lp/bugs/stories/bugs/xx-bug-comment-attach-file.txt 2009-08-07 08:56:22 +0000 | |||
165 | +++ lib/lp/bugs/stories/bugs/xx-bug-comment-attach-file.txt 2009-08-28 14:31:15 +0000 | |||
166 | @@ -15,7 +15,7 @@ | |||
167 | 15 | >>> user_browser.open( | 15 | >>> user_browser.open( |
168 | 16 | ... "http://bugs.launchpad.dev/firefox/+bug/1/+addcomment-form") | 16 | ... "http://bugs.launchpad.dev/firefox/+bug/1/+addcomment-form") |
169 | 17 | >>> user_browser.getControl(name='field.comment').value = "a test comment" | 17 | >>> user_browser.getControl(name='field.comment').value = "a test comment" |
171 | 18 | >>> user_browser.getControl("Post comment").click() | 18 | >>> user_browser.getControl("Post Comment").click() |
172 | 19 | 19 | ||
173 | 20 | >>> print user_browser.url | 20 | >>> print user_browser.url |
174 | 21 | http://bugs.launchpad.dev/firefox/+bug/1 | 21 | http://bugs.launchpad.dev/firefox/+bug/1 |
175 | @@ -31,7 +31,7 @@ | |||
176 | 31 | ... "http://bugs.launchpad.dev/firefox/+bug/1/+addcomment-form") | 31 | ... "http://bugs.launchpad.dev/firefox/+bug/1/+addcomment-form") |
177 | 32 | >>> user_browser.getControl("Attachment").add_file( | 32 | >>> user_browser.getControl("Attachment").add_file( |
178 | 33 | ... StringIO("a test file"), "text/plain", "foo.txt") | 33 | ... StringIO("a test file"), "text/plain", "foo.txt") |
180 | 34 | >>> user_browser.getControl("Post comment").click() | 34 | >>> user_browser.getControl("Post Comment").click() |
181 | 35 | 35 | ||
182 | 36 | >>> get_feedback_messages(user_browser.contents) | 36 | >>> get_feedback_messages(user_browser.contents) |
183 | 37 | [u'Attachment foo.txt added to bug.'] | 37 | [u'Attachment foo.txt added to bug.'] |
184 | @@ -45,7 +45,7 @@ | |||
185 | 45 | >>> user_browser.getControl("Attachment").add_file( | 45 | >>> user_browser.getControl("Attachment").add_file( |
186 | 46 | ... StringIO("some file"), "text/plain", "bar.txt") | 46 | ... StringIO("some file"), "text/plain", "bar.txt") |
187 | 47 | >>> user_browser.getControl("Description").value = "some file" | 47 | >>> user_browser.getControl("Description").value = "some file" |
189 | 48 | >>> user_browser.getControl("Post comment").click() | 48 | >>> user_browser.getControl("Post Comment").click() |
190 | 49 | 49 | ||
191 | 50 | >>> print user_browser.url | 50 | >>> print user_browser.url |
192 | 51 | http://bugs.launchpad.dev/firefox/+bug/1 | 51 | http://bugs.launchpad.dev/firefox/+bug/1 |
193 | @@ -59,7 +59,7 @@ | |||
194 | 59 | ... "http://bugs.launchpad.dev/firefox/+bug/1/+addcomment-form") | 59 | ... "http://bugs.launchpad.dev/firefox/+bug/1/+addcomment-form") |
195 | 60 | >>> user_browser.getControl("Attachment").add_file( | 60 | >>> user_browser.getControl("Attachment").add_file( |
196 | 61 | ... StringIO(""), "text/plain", "foo.txt") | 61 | ... StringIO(""), "text/plain", "foo.txt") |
198 | 62 | >>> user_browser.getControl("Post comment").click() | 62 | >>> user_browser.getControl("Post Comment").click() |
199 | 63 | 63 | ||
200 | 64 | >>> print user_browser.url | 64 | >>> print user_browser.url |
201 | 65 | http://bugs.launchpad.dev/firefox/+bug/1/+addcomment | 65 | http://bugs.launchpad.dev/firefox/+bug/1/+addcomment |
202 | @@ -81,7 +81,7 @@ | |||
203 | 81 | ... "http://bugs.launchpad.dev/firefox/+bug/1/+addcomment-form") | 81 | ... "http://bugs.launchpad.dev/firefox/+bug/1/+addcomment-form") |
204 | 82 | >>> user_browser.getControl("Attachment").add_file( | 82 | >>> user_browser.getControl("Attachment").add_file( |
205 | 83 | ... StringIO("x"*1025), "text/plain", "foo.txt") | 83 | ... StringIO("x"*1025), "text/plain", "foo.txt") |
207 | 84 | >>> user_browser.getControl("Post comment").click() | 84 | >>> user_browser.getControl("Post Comment").click() |
208 | 85 | 85 | ||
209 | 86 | >>> for msg in get_feedback_messages(user_browser.contents): | 86 | >>> for msg in get_feedback_messages(user_browser.contents): |
210 | 87 | ... print msg | 87 | ... print msg |
211 | @@ -95,7 +95,7 @@ | |||
212 | 95 | >>> user_browser.getControl("Attachment").add_file( | 95 | >>> user_browser.getControl("Attachment").add_file( |
213 | 96 | ... StringIO("a test file"), "text/plain", "foo.txt") | 96 | ... StringIO("a test file"), "text/plain", "foo.txt") |
214 | 97 | >>> user_browser.getControl("Description").value = "some file" | 97 | >>> user_browser.getControl("Description").value = "some file" |
216 | 98 | >>> user_browser.getControl("Post comment").click() | 98 | >>> user_browser.getControl("Post Comment").click() |
217 | 99 | 99 | ||
218 | 100 | >>> print user_browser.url | 100 | >>> print user_browser.url |
219 | 101 | http://bugs.launchpad.dev/firefox/+bug/1 | 101 | http://bugs.launchpad.dev/firefox/+bug/1 |
220 | 102 | 102 | ||
221 | === modified file 'lib/lp/bugs/stories/bugs/xx-bug-comments-truncated.txt' | |||
222 | --- lib/lp/bugs/stories/bugs/xx-bug-comments-truncated.txt 2009-08-06 13:51:38 +0000 | |||
223 | +++ lib/lp/bugs/stories/bugs/xx-bug-comments-truncated.txt 2009-08-28 14:31:15 +0000 | |||
224 | @@ -107,7 +107,7 @@ | |||
225 | 107 | ... "T2PIWy0CUJsX8RXSt/M51WE=\n" | 107 | ... "T2PIWy0CUJsX8RXSt/M51WE=\n" |
226 | 108 | ... "=J2S5\n" | 108 | ... "=J2S5\n" |
227 | 109 | ... "-----END PGP SIGNATURE-----\n") | 109 | ... "-----END PGP SIGNATURE-----\n") |
229 | 110 | >>> user_browser.getControl('Post comment', index=-1).click() | 110 | >>> user_browser.getControl('Post Comment', index=-1).click() |
230 | 111 | 111 | ||
231 | 112 | No Privileges Person is authenticated in user_browser, so he can see | 112 | No Privileges Person is authenticated in user_browser, so he can see |
232 | 113 | email addresses in messages. | 113 | email addresses in messages. |
233 | 114 | 114 | ||
234 | === modified file 'lib/lp/bugs/stories/bugs/xx-bug-hidden-comments.txt' | |||
235 | --- lib/lp/bugs/stories/bugs/xx-bug-hidden-comments.txt 2009-08-06 13:51:38 +0000 | |||
236 | +++ lib/lp/bugs/stories/bugs/xx-bug-hidden-comments.txt 2009-08-28 14:31:15 +0000 | |||
237 | @@ -9,7 +9,7 @@ | |||
238 | 9 | ... '/jokosher/+bug/11') | 9 | ... '/jokosher/+bug/11') |
239 | 10 | >>> user_browser.getControl(name='field.comment').value = ( | 10 | >>> user_browser.getControl(name='field.comment').value = ( |
240 | 11 | ... 'This comment will not visible when the test completes.') | 11 | ... 'This comment will not visible when the test completes.') |
242 | 12 | >>> user_browser.getControl('Post comment', index=-1).click() | 12 | >>> user_browser.getControl('Post Comment', index=-1).click() |
243 | 13 | >>> main_content = find_main_content(user_browser.contents) | 13 | >>> main_content = find_main_content(user_browser.contents) |
244 | 14 | >>> new_comment = main_content('div', 'boardCommentBody')[-1] | 14 | >>> new_comment = main_content('div', 'boardCommentBody')[-1] |
245 | 15 | >>> new_comment_text = extract_text(new_comment.div) | 15 | >>> new_comment_text = extract_text(new_comment.div) |
246 | 16 | 16 | ||
247 | === modified file 'lib/lp/bugs/stories/bugs/xx-incomplete-bugs.txt' | |||
248 | --- lib/lp/bugs/stories/bugs/xx-incomplete-bugs.txt 2009-08-06 13:51:38 +0000 | |||
249 | +++ lib/lp/bugs/stories/bugs/xx-incomplete-bugs.txt 2009-08-28 14:31:15 +0000 | |||
250 | @@ -49,7 +49,7 @@ | |||
251 | 49 | >>> user_browser.open('http://bugs.launchpad.dev/jokosher/+bug/11') | 49 | >>> user_browser.open('http://bugs.launchpad.dev/jokosher/+bug/11') |
252 | 50 | >>> user_browser.getControl(name='field.comment').value = ( | 50 | >>> user_browser.getControl(name='field.comment').value = ( |
253 | 51 | ... 'More information here.') | 51 | ... 'More information here.') |
255 | 52 | >>> user_browser.getControl('Post comment').click() | 52 | >>> user_browser.getControl('Post Comment').click() |
256 | 53 | 53 | ||
257 | 54 | >>> import transaction | 54 | >>> import transaction |
258 | 55 | >>> transaction.commit() | 55 | >>> transaction.commit() |
259 | @@ -188,7 +188,7 @@ | |||
260 | 188 | 188 | ||
261 | 189 | >>> user_browser.getLink('Make Jokosher use autoaudiosink').click() | 189 | >>> user_browser.getLink('Make Jokosher use autoaudiosink').click() |
262 | 190 | >>> user_browser.getControl(name='field.comment').value = "bump" | 190 | >>> user_browser.getControl(name='field.comment').value = "bump" |
264 | 191 | >>> user_browser.getControl('Post comment').click() | 191 | >>> user_browser.getControl('Post Comment').click() |
265 | 192 | >>> user_browser.getLink('Bugs').click() | 192 | >>> user_browser.getLink('Bugs').click() |
266 | 193 | >>> user_browser.getLink('incomplete bugs can expire').click() | 193 | >>> user_browser.getLink('incomplete bugs can expire').click() |
267 | 194 | >>> contents = find_main_content(user_browser.contents) | 194 | >>> contents = find_main_content(user_browser.contents) |
This is a clean up branch to change 'Post comment' to 'Post Comment'.
See bug 415253.
This was undertaken while doing some template updates for 3.0, but I
moved it to its own branch given all the lines of tests that needed
updating.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: bugs/stories/ bugattachments/ xx-delete- bug-attachment. txt bugs/stories/ bugattachments/ xx-display- filesize- attachment. txt bugs/browser/ bugmessage. py bugs/stories/ bugs/80- add-comment. txt bugs/stories/ bugs/xx- bug-comments- truncated. txt bugs/stories/ bugs/xx- bug-hidden- comments. txt bugs/stories/ bugs/xx- bug-activity. txt bugs/stories/ bugattachments/ 40-search- bug-attachments .txt bugs/stories/ bugs/xx- bug-comment- attach- file.txt bugs/stories/ bugs/xx- add-comment- with-bugwatch- and-cve. txt bugs/stories/ bugs/xx- incomplete- bugs.txt bugs/stories/ bugattachments/ 10-add- bug-attachment. txt
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/ bugs/stories/ bugs/xx- add-comment- distribution- no-current- release. txt