Refactor issues, Remove ajax
This commit is contained in:
parent
8826077471
commit
2f7effe804
17 changed files with 44 additions and 174 deletions
|
@ -24,11 +24,9 @@ Feature: Project Issues
|
|||
Given I click link "Release 0.4"
|
||||
Then I should see issue "Release 0.4"
|
||||
|
||||
@javascript
|
||||
Scenario: I submit new unassigned issue
|
||||
Given I click link "New Issue"
|
||||
And I submit new issue "500 error on profile"
|
||||
Given I click link "500 error on profile"
|
||||
Then I should see issue "500 error on profile"
|
||||
|
||||
@javascript
|
||||
|
@ -57,15 +55,6 @@ Feature: Project Issues
|
|||
Then I should see "Release 0.3" in issues
|
||||
And I should not see "Release 0.4" in issues
|
||||
|
||||
# TODO: find out solution for poltergeist/phantomjs or remove
|
||||
# @javascript
|
||||
# Scenario: I clear search
|
||||
# Given I click link "All"
|
||||
# And I fill in issue search with "Something"
|
||||
# And I fill in issue search with ""
|
||||
# Then I should see "Release 0.4" in issues
|
||||
# And I should see "Release 0.3" in issues
|
||||
|
||||
@javascript
|
||||
Scenario: I create Issue with pre-selected milestone
|
||||
Given project "Shop" has milestone "v2.2"
|
||||
|
|
|
@ -95,7 +95,7 @@ class ProjectIssues < Spinach::FeatureSteps
|
|||
end
|
||||
|
||||
Then 'I should see selected milestone with title "v3.0"' do
|
||||
issues_milestone_selector = "#milestone_id_chzn > a"
|
||||
issues_milestone_selector = "#issue_milestone_id_chzn > a"
|
||||
page.find(issues_milestone_selector).should have_content("v3.0")
|
||||
end
|
||||
|
||||
|
@ -106,7 +106,7 @@ class ProjectIssues < Spinach::FeatureSteps
|
|||
end
|
||||
|
||||
Then 'I should see first assignee from "Shop" as selected assignee' do
|
||||
issues_assignee_selector = "#assignee_id_chzn > a"
|
||||
issues_assignee_selector = "#issue_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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue