Skip to content

Commit

Permalink
Check that the value changes and is read back from the server (i.e. t…
Browse files Browse the repository at this point in the history
…he reload really did happen).
  • Loading branch information
dwt committed Dec 17, 2018
1 parent 9410098 commit f8d5b5b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Products/SiteErrorLog/tests/testSiteErrorLog.py
Expand Up @@ -207,7 +207,10 @@ def testSubmitRetainsIgnoredExceptionsUnchanged(self):
# Checks the fix for https://github.com/zopefoundation/Products.SiteErrorLog/issues/13
ignoredExceptions = self.browser.getControl(label='Ignored exception types')
self.assertEqual(ignoredExceptions.value, 'Unauthorized\nNotFound\nRedirect') # default value
ignoredExceptions.value = 'Unauthorized\nFnord'
self.assertNotIn('Changed properties', self.browser.contents)
self.browser.getControl('Save Changes').click()
self.assertIn('Changed properties', self.browser.contents)
ignoredExceptions = self.browser.getControl(label='Ignored exception types')
self.assertEqual(ignoredExceptions.value, 'Unauthorized\nNotFound\nRedirect')
self.assertEqual(ignoredExceptions.value, 'Unauthorized\nFnord')

0 comments on commit f8d5b5b

Please sign in to comment.