Moved the notification messages to the bottom-right corner.

master
Pacman Ghost 6 years ago
parent 9cd9924246
commit 40d676194b
  1. 6
      vasl_templates/webapp/static/utils.js
  2. 4
      vasl_templates/webapp/tests/test_scenario_persistence.py
  3. 4
      vasl_templates/webapp/tests/test_ssr.py

@ -71,7 +71,7 @@ function showInfoMsg( msg )
style: "notice", style: "notice",
title: null, title: null,
message: msg, message: msg,
location: "tr", location: "br",
} ) ; } ) ;
storeMsgForTestSuite( "_last-info_", msg ) ; storeMsgForTestSuite( "_last-info_", msg ) ;
} }
@ -85,7 +85,7 @@ function showWarningMsg( msg )
style: "warning", style: "warning",
title: null, title: null,
message: msg, message: msg,
location: "tr", location: "br",
} ) ; } ) ;
storeMsgForTestSuite( "_last-warning_", msg ) ; storeMsgForTestSuite( "_last-warning_", msg ) ;
} }
@ -99,7 +99,7 @@ function showErrorMsg( msg )
style: "error", style: "error",
title: null, title: null,
message: msg, message: msg,
location: "tr", location: "br",
fixed: true, fixed: true,
} ) ; } ) ;
storeMsgForTestSuite( "_last-error_", msg ) ; storeMsgForTestSuite( "_last-error_", msg ) ;

@ -1,7 +1,6 @@
""" Test loading/saving scenarios. """ """ Test loading/saving scenarios. """
import json import json
import time
from selenium.webdriver.support.ui import Select from selenium.webdriver.support.ui import Select
@ -55,9 +54,6 @@ def test_scenario_persistence( webapp, webdriver ):
elem.click() elem.click()
elem = find_child( "a.PopMenu-Link[data-name='new']" ) elem = find_child( "a.PopMenu-Link[data-name='new']" )
elem.click() elem.click()
elem = find_child( ".growl-close" )
elem.click()
time.sleep( 0.5 )
# check the save results # check the save results
data = _save_scenario() data = _save_scenario()

@ -1,6 +1,7 @@
""" Test generating SSR snippets. """ """ Test generating SSR snippets. """
import html import html
import time
from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.action_chains import ActionChains
@ -32,6 +33,9 @@ def test_ssr( webapp, webdriver ):
if width: if width:
val += "\nwidth = [{}]".format( width ) val += "\nwidth = [{}]".format( width )
assert html.unescape( get_clipboard() ) == val assert html.unescape( get_clipboard() ) == val
elem = find_child( ".growl-close" )
elem.click()
time.sleep( 0.25 )
# add an SSR and generate the SSR snippet # add an SSR and generate the SSR snippet
_add_ssr( "This is my first SSR." ) _add_ssr( "This is my first SSR." )

Loading…
Cancel
Save