> @@ -88,14 +93,14 @@
> Show received invitations
>
> If the team does not have any recently approved or proposed members,
> -the recent members sections are not displayed:
> +the recent members sections are hidden using the "unseen" css class:
>
> >>> browser.open('http://launchpad.dev/~launchpad')
> >>> print find_tag_by_id(browser.contents, 'recently-approved')
> - None
> + <td id="recently-approved" ... class="unseen">...
>
> - >>> print find_tag_by_id(browser.contents, 'recently-applied')
> - None
> + >>> print find_tag_by_id(browser.contents, 'recently-proposed')
> + <td id="recently-proposed" class="unseen">...
These tests will break if we reimplement this as a list. We should not print
markup in user stories because they do no read the source. The test is parsing
the tree many times. I think this can be expressed like this so that it runs
faster and is robust.
Hi Edwin.
This is a nice addition. I have no remarks about new test. I have a suggestion about the team story
> === modified file 'lib/lp/ registry/ stories/ team/xx- team-home. txt' registry/ stories/ team/xx- team-home. txt 2009-11-22 15:43:16 +0000 registry/ stories/ team/xx- team-home. txt 2009-12-21 19:53:58 +0000
> --- lib/lp/
> +++ lib/lp/
...
> @@ -88,14 +93,14 @@ launchpad. dev/~launchpad') by_id(browser. contents, 'recently- approved' ) approved" ... class="unseen">... by_id(browser. contents, 'recently-applied') by_id(browser. contents, 'recently- proposed' ) proposed" class="unseen">...
> Show received invitations
>
> If the team does not have any recently approved or proposed members,
> -the recent members sections are not displayed:
> +the recent members sections are hidden using the "unseen" css class:
>
> >>> browser.open('http://
> >>> print find_tag_
> - None
> + <td id="recently-
>
> - >>> print find_tag_
> - None
> + >>> print find_tag_
> + <td id="recently-
These tests will break if we reimplement this as a list. We should not print
markup in user stories because they do no read the source. The test is parsing
the tree many times. I think this can be expressed like this so that it runs
faster and is robust.
>>> browser.open('http:// launchpad. dev/~launchpad') content( browser. contents) by_id(content, 'recently- approved' )
>>> content = find_main_
>>> tag = find_tag_
>>> print tag['class']
unseen
>>> tag = find_tag_ by_id(content, 'recently- proposed' )
>>> print tag['class']
unseen
.