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",
title: null,
message: msg,
location: "tr",
location: "br",
} ) ;
storeMsgForTestSuite( "_last-info_", msg ) ;
}
@ -85,7 +85,7 @@ function showWarningMsg( msg )
style: "warning",
title: null,
message: msg,
location: "tr",
location: "br",
} ) ;
storeMsgForTestSuite( "_last-warning_", msg ) ;
}
@ -99,7 +99,7 @@ function showErrorMsg( msg )
style: "error",
title: null,
message: msg,
location: "tr",
location: "br",
fixed: true,
} ) ;
storeMsgForTestSuite( "_last-error_", msg ) ;

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

@ -1,6 +1,7 @@
""" Test generating SSR snippets. """
import html
import time
from selenium.webdriver.common.action_chains import ActionChains
@ -32,6 +33,9 @@ def test_ssr( webapp, webdriver ):
if width:
val += "\nwidth = [{}]".format( width )
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_ssr( "This is my first SSR." )

Loading…
Cancel
Save