From 87e9ccbcdf4f99dd898b0715750092a27fff7e94 Mon Sep 17 00:00:00 2001 From: Azul Date: Fri, 4 Jul 2014 15:40:54 +0200 Subject: Enable unblocking handles in identities tab There's an identities tab now for admins that will allow unblocking blocked handles. It should be easy to expand for aliases and forwards and other types of actions such as editing. --- test/integration/browser/admin_test.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test/integration/browser/admin_test.rb (limited to 'test/integration/browser') diff --git a/test/integration/browser/admin_test.rb b/test/integration/browser/admin_test.rb new file mode 100644 index 0000000..2d3f988 --- /dev/null +++ b/test/integration/browser/admin_test.rb @@ -0,0 +1,24 @@ +require 'test_helper' + +class AdminTest < BrowserIntegrationTest + + test "clear blocked handle" do + id = FactoryGirl.create :identity + submit_signup(id.login) + assert page.has_content?('has already been taken') + login + with_config admins: [@user.login] do + visit '/' + click_on "Usernames" + within "##{dom_id(id)}" do + assert page.has_content? id.login + click_on "Destroy" + end + assert page.has_no_content? id.login + click_on 'Log Out' + end + submit_signup(id.login) + assert page.has_content?("Welcome #{id.login}") + click_on 'Log Out' + end +end -- cgit v1.2.3