From 40d676194b74306f2b4a28ae9cdf4f7b06645ae9 Mon Sep 17 00:00:00 2001 From: Taka Date: Sat, 14 Jul 2018 05:55:52 +0000 Subject: [PATCH] Moved the notification messages to the bottom-right corner. --- vasl_templates/webapp/static/utils.js | 6 +++--- vasl_templates/webapp/tests/test_scenario_persistence.py | 4 ---- vasl_templates/webapp/tests/test_ssr.py | 4 ++++ 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/vasl_templates/webapp/static/utils.js b/vasl_templates/webapp/static/utils.js index 6f4ad52..877b9ea 100644 --- a/vasl_templates/webapp/static/utils.js +++ b/vasl_templates/webapp/static/utils.js @@ -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 ) ; diff --git a/vasl_templates/webapp/tests/test_scenario_persistence.py b/vasl_templates/webapp/tests/test_scenario_persistence.py index 23290d2..12f23dd 100644 --- a/vasl_templates/webapp/tests/test_scenario_persistence.py +++ b/vasl_templates/webapp/tests/test_scenario_persistence.py @@ -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() diff --git a/vasl_templates/webapp/tests/test_ssr.py b/vasl_templates/webapp/tests/test_ssr.py index f8a5eae..47a8a30 100644 --- a/vasl_templates/webapp/tests/test_ssr.py +++ b/vasl_templates/webapp/tests/test_ssr.py @@ -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." )