~menesis/schooltool/celery

« back to all changes in this revision

Viewing changes to src/schooltool/app/browser/stests/server_tabs.txt

  • Committer: Douglas Cerna
  • Date: 2013-11-13 22:34:08 UTC
  • Revision ID: douglascerna@yahoo.com-20131113223408-kslunwpqyz6eklsr
Fixed server tabs stest

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
setting for the default tab.  We do not allow control over the Server and
35
35
School tabs.
36
36
 
37
 
    >>> print manager.query_all.xpath('//div[@class="body"]//input[@type="radio"]')
 
37
    >>> for input in manager.query_all.xpath('//div[@class="body"]//input[@type="radio"]')[:2]:
 
38
    ...     print input
38
39
    <input name="default_tab" type="radio" value="home" />
39
40
    <input checked="checked" name="default_tab" type="radio" value="calendar" />
40
41
 
43
44
disabled because we can't allow a tab to be hidden if it is currently the
44
45
default tab.
45
46
 
46
 
    >>> print manager.query_all.xpath('//div[@class="body"]//input[@type="checkbox"]')
 
47
    >>> for input in manager.query_all.xpath('//div[@class="body"]//input[@type="checkbox"]')[:2]:
 
48
    ...     print input
47
49
    <input checked="checked" name="visible:list" type="checkbox" value="home" />
48
50
    <input checked="checked" disabled="disabled" name="visible:list" type="checkbox" value="calendar" />
49
51
 
52
54
checkbox enabled.
53
55
 
54
56
    >>> manager.query.xpath('//div[@class="body"]//input[@type="radio"][@value="home"]').click()
55
 
    >>> print manager.query_all.xpath('//div[@class="body"]//input[@type="checkbox"]')
 
57
    >>> for input in manager.query_all.xpath('//div[@class="body"]//input[@type="checkbox"]')[:2]:
 
58
    ...     print input
56
59
    <input checked="checked" disabled="disabled" name="visible:list" type="checkbox" value="home" />
57
60
    <input checked="checked" name="visible:list" type="checkbox" value="calendar" />
58
61