Commit 7f368753 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fixed mr filter tests

parent 9fddd5b4
class EventFilters < Spinach::FeatureSteps class EventFilters < Spinach::FeatureSteps
include SharedAuthentication include SharedAuthentication
include SharedPaths include SharedPaths
include SharedProject include SharedProject
Then 'I should see push event' do Then 'I should see push event' do
page.should have_selector('span.pushed') page.should have_selector('span.pushed')
end end
Then 'I should not see push event' do Then 'I should not see push event' do
page.should_not have_selector('span.pushed') page.should_not have_selector('span.pushed')
end end
...@@ -20,11 +20,11 @@ class EventFilters < Spinach::FeatureSteps ...@@ -20,11 +20,11 @@ class EventFilters < Spinach::FeatureSteps
end end
Then 'I should see merge request event' do Then 'I should see merge request event' do
page.should have_selector('span.merged') page.should have_selector('span.accepted')
end end
And 'I should not see merge request event' do And 'I should not see merge request event' do
page.should_not have_selector('span.merged') page.should_not have_selector('span.accepted')
end end
And 'this project has push event' do And 'this project has push event' do
...@@ -68,7 +68,7 @@ class EventFilters < Spinach::FeatureSteps ...@@ -68,7 +68,7 @@ class EventFilters < Spinach::FeatureSteps
target_id: merge_request.id, target_id: merge_request.id,
target_type: "MergeRequest", target_type: "MergeRequest",
author_id: @user.id author_id: @user.id
) )
end end
When 'I click "push" event filter' do When 'I click "push" event filter' do
......
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