Changeset 12238


Ignore:
Timestamp:
15 Dec 2014, 06:45:36 (10 years ago)
Author:
Henrik Bettermann
Message:

Test multilingual content.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/documents/tests/test_browser.py

    r12237 r12238  
    217217        self.browser.getControl(name="form.html_multilang").value = """
    218218<h1>Hello World</h1>
     219>>de<<
     220<h1>Hallo Welt</h1>
    219221"""
    220222        self.browser.getControl("Save").click()
     
    224226        self.assertTrue(
    225227            '<h1>Hello World</h1>' in self.browser.contents)
     228        self.assertFalse(
     229            '<h1>Hallo Welt</h1>' in self.browser.contents)
     230        self.browser.getLink("de").click()
     231        self.assertFalse(
     232            '<h1>Hello World</h1>' in self.browser.contents)
     233        self.assertTrue(
     234            '<h1>Hallo Welt</h1>' in self.browser.contents)
    226235
    227236        # Transitions can be performed
     
    229238        self.browser.getLink("Transition").click()
    230239        self.browser.getControl(name="transition").value = ['publish']
    231         self.browser.getControl("Save").click()
     240        self.browser.getControl("Speichern").click()
    232241        self.assertEqual(document.state, 'published')
    233242
    234243        # Documents can be removed
     244        self.browser.getLink("en", index=2).click()
    235245        self.browser.getLink("Documents").click()
    236246        self.browser.getLink("Manage").click()
Note: See TracChangeset for help on using the changeset viewer.