From 696f2174de6cbaff30d991b062e1f0efb299f2e5 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 25 May 2015 00:12:23 +0200 Subject: [PATCH] Improved auto wizard. --- test/integration/auto_wizard_test.rb | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/test/integration/auto_wizard_test.rb b/test/integration/auto_wizard_test.rb index 8971c52e2..bd37864ac 100644 --- a/test/integration/auto_wizard_test.rb +++ b/test/integration/auto_wizard_test.rb @@ -8,11 +8,19 @@ class AutoWizardTest < TestCase watch_for( css: 'body', - value: 'Invite', + value: 'auto wizard is enabled', timeout: 10, ) - click( css: '.content .btn--primary' ) + location( url: "#{browser_url}/#getting_started/auto_wizard" ) + + watch_for( + css: 'body', + value: 'auto wizard is enabled', + timeout: 10, + ) + + location( url: "#{browser_url}/#getting_started/auto_wizard/secret_token" ) watch_for( css: '.user-menu .user a', @@ -33,6 +41,18 @@ class AutoWizardTest < TestCase value: 'Atila', ) + logout + + login( + username: 'hans.atila@zammad.org', + password: 'Z4mm4dr0ckZ!', + ) + watch_for( + css: '.user-menu .user a', + attribute: 'title', + value: 'hans.atila@zammad.org', + timeout: 8, + ) end end