Commit c7aeb512 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix pre-selected assignee spinach

parent 5d9788b0
...@@ -107,8 +107,7 @@ class ProjectIssues < Spinach::FeatureSteps ...@@ -107,8 +107,7 @@ class ProjectIssues < Spinach::FeatureSteps
end end
Then 'I should see first assignee from "Shop" as selected assignee' do Then 'I should see first assignee from "Shop" as selected assignee' do
issues_assignee_selector = "#issue_assignee_id_chzn/a" issues_assignee_selector = "#assignee_id_chzn > a"
wait_until { page.has_content?("Details") }
project = Project.find_by_name "Shop" project = Project.find_by_name "Shop"
assignee_name = project.users.first.name assignee_name = project.users.first.name
page.find(issues_assignee_selector).should have_content(assignee_name) page.find(issues_assignee_selector).should have_content(assignee_name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment