~replaceafill/ubuntu/trusty/schooltool/2.8_custom-css

« back to all changes in this revision

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

  • Committer: Gediminas Paulauskas
  • Date: 2013-11-21 01:36:26 UTC
  • mfrom: (1.1.29)
  • Revision ID: menesis@pov.lt-20131121013626-bqmmklddme5uxqtz
Tags: 1:2.6.1.1-0ubuntu1
* New upstream bugfix release.
* debian/supervisord.conf: autorestart schooltool if it dies.

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