From e362dec1811c9872419c5ea627c9e157a7abf8a0 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 24 Aug 2012 14:21:56 +0300 Subject: [PATCH] Test for UI.getCurrent() in LoginHandler (#9372) --- .../loginform/LoginFormUIInLoginHandler.html | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100755 tests/testbench/com/vaadin/tests/components/loginform/LoginFormUIInLoginHandler.html diff --git a/tests/testbench/com/vaadin/tests/components/loginform/LoginFormUIInLoginHandler.html b/tests/testbench/com/vaadin/tests/components/loginform/LoginFormUIInLoginHandler.html new file mode 100755 index 0000000000..9a80ce6013 --- /dev/null +++ b/tests/testbench/com/vaadin/tests/components/loginform/LoginFormUIInLoginHandler.html @@ -0,0 +1,57 @@ + + + + + + +New Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
New Test
open/run/com.vaadin.tests.components.loginform.LoginFormUIInLoginHandler?restartApplication
waitForElementPresentusername
enterCharacterusernameabc
enterCharacterpassworddef
click//form[@id='loginf']/div[5]/div/span/span
pauseAndWait1000
assertTextvaadin=runcomvaadintestscomponentsloginformLoginFormUIInLoginHandler::/VVerticalLayout[0]/VVerticalLayout[0]/VLabel[0]UI.getCurrent().data: This UI
assertTextvaadin=runcomvaadintestscomponentsloginformLoginFormUIInLoginHandler::/VVerticalLayout[0]/VVerticalLayout[0]/VLabel[1]event.getSource().data: This UI
+ + -- 2.39.5