~justas.sadzevicius/schooltool.intervention/flourish

« back to all changes in this revision

Viewing changes to src/schooltool/intervention/browser/ftests/intervention_dashboard.txt

  • Committer: Gediminas Paulauskas
  • Author(s): Alan Elkner
  • Date: 2011-05-12 21:47:00 UTC
  • mfrom: (269.1.17 schooltool.intervention)
  • Revision ID: menesis@pov.lt-20110512214700-zqqdicvrlgt78rfe
Add more tests, remove orphaned code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
    <a href="http://localhost/schooltool.interventions/2005-2006/student3">Student3</a>
159
159
    <a href="http://localhost/schooltool.interventions/2005-2006/student3">Student3</a>
160
160
 
 
161
The name filter also matches usernames, so that even though 'manager' does not
 
162
match any user's first or last name, it will bring up the manager's intervenion
 
163
center.
 
164
 
 
165
    >>> principal.getControl(name='SEARCH_STUDENT_NAME').value = 'manager'
 
166
    >>> principal.getControl(name='SEARCH_STUDENT_BUTTON').click()
 
167
    >>> principal.printQuery("id('content-body')/div/form/fieldset[1]/div/table/tbody//a")
 
168
    <a href="http://localhost/schooltool.interventions/2005-2006/manager">SchoolTool</a>
 
169
    <a href="http://localhost/schooltool.interventions/2005-2006/manager">Administrator</a>
 
170
 
161
171
We have a Clear button that restores the search criteria to empty, thus
162
172
returning all users again.
163
173
 
198
208
    <b>Search Students</b>
199
209
    <b>Inbox</b>
200
210
 
 
211
We can also search for students with filtering directly from the inbox view.
 
212
 
 
213
    >>> principal.getLink('Intervention').click()
 
214
    >>> principal.getControl(name='SEARCH_STUDENT_NAME').value = 'student'
 
215
    >>> principal.getControl(name='SEARCH_STUDENT_BUTTON').click()
 
216
    >>> principal.printQuery("id('content-body')/div/form/fieldset[1]/div/table/tbody//a")
 
217
    <a href="http://localhost/schooltool.interventions/2005-2006/student1">Student1</a>
 
218
    <a href="http://localhost/schooltool.interventions/2005-2006/student1">Student1</a>
 
219
    <a href="http://localhost/schooltool.interventions/2005-2006/student2">Student2</a>
 
220
    <a href="http://localhost/schooltool.interventions/2005-2006/student2">Student2</a>
 
221
    <a href="http://localhost/schooltool.interventions/2005-2006/student3">Student3</a>
 
222
    <a href="http://localhost/schooltool.interventions/2005-2006/student3">Student3</a>
 
223
 
 
224
    >>> principal.getLink('Intervention').click()
 
225
    >>> principal.getControl(name='WITH_GOALS_ONLY').value = 'checked'
 
226
    >>> principal.getControl(name='SEARCH_STUDENT_BUTTON').click()
 
227
    >>> principal.printQuery("id('content-body')/div/form/fieldset[1]/div/table/tbody//a")
 
228
    <a href="http://localhost/schooltool.interventions/2005-2006/student2">Student2</a>
 
229
    <a href="http://localhost/schooltool.interventions/2005-2006/student2">Student2</a>
 
230
    <a href="http://localhost/schooltool.interventions/2005-2006/student3">Student3</a>
 
231
    <a href="http://localhost/schooltool.interventions/2005-2006/student3">Student3</a>
 
232
 
201
233
 
202
234
Inbox Fieldset
203
235
--------------