summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorHiroyuki Sato <h-sato@ruby-dev.jp>2016-10-29 00:47:15 +0900
committerHiroyuki Sato <h-sato@ruby-dev.jp>2016-11-06 12:05:13 +0900
commit8d0e84bcf49ccb136557302313bac0833b7d91e5 (patch)
tree39e640199bd866cfac7fc2066d127b5ec2c501eb /features
parentb5bb98100a58a39a4982c28d868c195ead19a69e (diff)
downloadgitlab-ce-8d0e84bcf49ccb136557302313bac0833b7d91e5.tar.gz
Fix spinach test
Diffstat (limited to 'features')
-rw-r--r--features/project/network_graph.feature2
-rw-r--r--features/steps/project/network_graph.rb4
2 files changed, 5 insertions, 1 deletions
diff --git a/features/project/network_graph.feature b/features/project/network_graph.feature
index 89a02706bd2..93c884e23c5 100644
--- a/features/project/network_graph.feature
+++ b/features/project/network_graph.feature
@@ -43,4 +43,4 @@ Feature: Project Network Graph
Scenario: I should fail to look for a commit
When I look for a commit by ";"
- Then page status code should be 404
+ Then I should see non-existent git revision error message
diff --git a/features/steps/project/network_graph.rb b/features/steps/project/network_graph.rb
index 019b3124a86..ff9251615c9 100644
--- a/features/steps/project/network_graph.rb
+++ b/features/steps/project/network_graph.rb
@@ -109,4 +109,8 @@ class Spinach::Features::ProjectNetworkGraph < Spinach::FeatureSteps
find('button').click
end
end
+
+ step 'I should see non-existent git revision error message' do
+ expect(page).to have_selector '.flash-alert', text: "Git revision ';' does not exist."
+ end
end