From 604f4c918eb34792eb12a4ebb85ad0bdd0e21080 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 13 Aug 2014 11:39:48 +0200 Subject: [PATCH] Fixed browser tests. --- app/controllers/users_controller.rb | 2 +- test/browser/manage_test.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 4085f0288..d84b7bd2b 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -70,7 +70,7 @@ curl http://localhost/api/v1/users.json -v -u #{login}:#{password} end users_all = [] users.each {|user| - users_all.push User.find( user.id ) + users_all.push User.find( user.id ).attributes_with_associations } render :json => users_all, :status => :ok end diff --git a/test/browser/manage_test.rb b/test/browser/manage_test.rb index e24d2b736..178403470 100644 --- a/test/browser/manage_test.rb +++ b/test/browser/manage_test.rb @@ -76,11 +76,11 @@ class ManageTest < TestCase }, { :execute => 'click', - :css => 'a[data-type="edit"]:last-child', + :css => '.table-overview tr:last-child td', }, { :execute => 'wait', - :value => 1, + :value => 2, }, { :execute => 'set', @@ -146,7 +146,7 @@ class ManageTest < TestCase }, { :execute => 'click', - :css => 'a[data-type="edit"]:last-child', + :css => '.table-overview tr:last-child td', }, { :execute => 'wait',