Skip to content
Permalink
Browse files

Fix UI Tests

  • Loading branch information...
dvdbng committed Jan 7, 2016
1 parent 7693458 commit 01cdeb42212219860014f9fc25623ecbfd4474f1
Showing with 3 additions and 3 deletions.
  1. +1 −1 splash/tests/test_execute.py
  2. +2 −2 splash/tests/test_ui.py
@@ -2063,7 +2063,7 @@ def test_nolua(self):
# Check that Lua is disabled in UI
resp = requests.get(splash.url("/"))
self.assertStatusCode(resp, 200)
self.assertNotIn("<textarea", resp.text) # no code editor
self.assertIn('"lua_enabled": false', resp.text)

script = "function main(splash) return 'foo' end"

@@ -12,6 +12,6 @@ def test_render_ui_available(self):
self.assertIn("Splash", ui_main.text)

if lua.is_supported():
self.assertIn("<textarea", ui_main.text)
self.assertIn('"lua_enabled": true', ui_main.text)
else:
self.assertNotIn("<textarea", ui_main.text)
self.assertIn('"lua_enabled": false', ui_main.text)

0 comments on commit 01cdeb4

Please sign in to comment.
You can’t perform that action at this time.