From c7aeb5127e3e7e852ed76096ad90a68ebd1195fa Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Fri, 16 Nov 2012 13:03:07 +0200 Subject: [PATCH] Fix pre-selected assignee spinach --- features/steps/project/project_issues.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/features/steps/project/project_issues.rb b/features/steps/project/project_issues.rb index 23142f5c..88bfac63 100644 --- a/features/steps/project/project_issues.rb +++ b/features/steps/project/project_issues.rb @@ -107,8 +107,7 @@ class ProjectIssues < Spinach::FeatureSteps end Then 'I should see first assignee from "Shop" as selected assignee' do - issues_assignee_selector = "#issue_assignee_id_chzn/a" - wait_until { page.has_content?("Details") } + issues_assignee_selector = "#assignee_id_chzn > a" project = Project.find_by_name "Shop" assignee_name = project.users.first.name page.find(issues_assignee_selector).should have_content(assignee_name)