Ignore:
Timestamp:
25 Feb 2012, 20:45:51 (13 years ago)
Author:
Henrik Bettermann
Message:

Add some browser tests for correct rendering and translation of the frontpage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt

    r7703 r7704  
    3535  >>> print browser.contents
    3636  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    37   ...Welcome to...
     37  ...Welcome to WAeUP.SIRP...
    3838  ...
    3939
     
    109109  ...Plugins were updated. See log file for details...
    110110  ...
     111
     112The default frontpage ReST has been saved in a dictionary
     113and is properly rendered on the frontpage of the portal:
     114
     115  >>> browser.open('http://localhost/myuniversity')
     116  >>> print browser.contents
     117  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
     118  ...<h1>Welcome to the Student Information and Registration Portal...</h1>
     119  ...
     120
     121The German part is really not being rendered:
     122
     123  >>> 'Willkommen' in browser.contents
     124  False
     125
     126
     127If we change to German so that the German part of frontpage.rst is rendered:
     128
     129  >>> browser.open('http://localhost/myuniversity//@@change_language?lang=de')
     130  >>> print browser.contents
     131  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
     132  ...<h1>Willkommen im Studenteninformations- und Registrierungsportal</h1>
     133  ...
     134
     135The English part is really not being rendered:
     136
     137  >>> 'Welcome' in browser.contents
     138  False
     139
     140Switch back to English:
     141
     142  >>> browser.open('http://localhost/myuniversity//@@change_language?lang=en')
    111143
    112144We can export a university as XML::
Note: See TracChangeset for help on using the changeset viewer.