~jamalta/launchpad/bug-127489

« back to all changes in this revision

Viewing changes to lib/lp/registry/stories/project/xx-project-edit.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2009-08-01 00:18:15 UTC
  • mfrom: (9010.1.8 base-layout-bug-407052)
  • Revision ID: launchpad@pqm.canonical.com-20090801001815-qwlj0z3rodsklj2u
[r=abel][ui=none][bug 407052,
        407055] base-layout requries the callsite to pass the <h1> for the
        heading slot so that the title edit widget works. Created
        +related-pages to reuse NavigationMenus as an inline list.
        Currently listening to British Sea Power -- Boy Vertiginous.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
= Editing a Project =
 
1
Editing a Project
 
2
=================
2
3
 
3
4
The maintainer of a project can edit its details.
4
5
 
9
10
    'Change project group details'
10
11
 
11
12
    >>> soup = find_main_content(browser.contents)
12
 
    >>> print soup.first('h1').renderContents()
 
13
    >>> print browser.title
13
14
    Change project group details
14
15
 
15
16
    >>> browser.getControl(name='field.name').value = 'new-name'
38
39
 
39
40
    >>> admin_browser.url
40
41
    'http://launchpad.dev/new-name/+review'
 
42
 
41
43
    >>> admin_browser.title
42
44
    'Change project group details'
43
45
 
44
 
    >>> soup = find_main_content(admin_browser.contents)
45
 
    >>> print soup.first('h1').renderContents()
46
 
    Review upstream project group details
47
 
 
48
46
Mark the project as reviewed.
49
47
 
50
48
    >>> admin_browser.getControl('Reviewed').selected = True
71
69
    Driver: Not yet appointed
72
70
    Bug tracker: The Mozilla.org Bug Tracker
73
71
 
74
 
Administrators can also change the maintainer and registrant independent of
75
 
each other, as well as adding aliases to the project group.
 
72
Administrators can also change the maintainer and registrant independent
 
73
of each other, as well as adding aliases to the project group.
76
74
 
77
75
    >>> admin_browser.open('http://launchpad.dev/new-name')
78
76
    >>> admin_browser.getLink('Administer').click()
80
78
    >>> admin_browser.getControl('Registrant').value = 'ddaa'
81
79
    >>> admin_browser.getControl('Aliases').value
82
80
    ''
 
81
 
83
82
    >>> admin_browser.getControl('Aliases').value = 'old-name'
84
83
    >>> admin_browser.getControl('Change').click()
85
84
 
86
85
    >>> admin_browser.getLink('Administer').click()
87
86
    >>> admin_browser.getControl('Aliases').value
88
87
    'old-name'
 
88
 
89
89
    >>> admin_browser.goBack()
90
90
 
91
91
The project maintainer and registrant are now updated.
95
95
    ...           tag.find(text='Maintainer:').findParent('tr'))
96
96
    Maintainer:
97
97
    Celso Providelo
 
98
 
98
99
    >>> tag = find_tag_by_id(admin_browser.contents, 'portlet-lifecycle')
99
100
    >>> print extract_text(
100
101
    ...       tag.find(text='Registered by:').findParent('tr'))
115
116
    ...           tag.find(text='Maintainer:').findParent('tr'))
116
117
    Maintainer:
117
118
    Celso Providelo
 
119
 
118
120
    >>> tag = find_tag_by_id(admin_browser.contents, 'portlet-lifecycle')
119
121
    >>> print extract_text(
120
122
    ...       tag.find(text='Registered by:').findParent('tr'))
121
123
    Registered by:
122
124
    Registry Administrators
 
125