summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2016-04-28 16:09:05 +0000
committerRobert Speicher <robert@gitlab.com>2016-04-28 16:09:05 +0000
commit8ab6ca8281951bd0909605428d7da64786bb2cc5 (patch)
tree49179fd5afcf742ca46a4f92b1a14ad3e892d561
parentce92b3d3426519c4eea89b21ab1584910534832a (diff)
parentd2f898e7eadc2b4b3d2afb839818c5bc886ce62f (diff)
downloadgitlab-ce-8ab6ca8281951bd0909605428d7da64786bb2cc5.tar.gz
Merge branch 'todos-tests-fix' into 'master'
Fix Todos test Another attempt to fix random fail on Todos test. See merge request !3953
-rw-r--r--spec/features/todos/todos_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/todos/todos_spec.rb b/spec/features/todos/todos_spec.rb
index 248e004ba6e..3354f529295 100644
--- a/spec/features/todos/todos_spec.rb
+++ b/spec/features/todos/todos_spec.rb
@@ -68,12 +68,12 @@ describe 'Dashboard Todos', feature: true do
describe 'completing last todo from last page', js: true do
it 'redirects to the previous page' do
visit dashboard_todos_path(page: 2)
- expect(page).to have_content(Todo.first.body)
+ expect(page).to have_css("#todo_#{Todo.last.id}")
click_link('Done')
expect(current_path).to eq dashboard_todos_path
- expect(page).to have_content(Todo.last.body)
+ expect(page).to have_css("#todo_#{Todo.first.id}")
end
end
end