summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorJacopo <beschi.jacopo@gmail.com>2017-01-29 10:44:30 +0100
committerJacopo <beschi.jacopo@gmail.com>2017-03-16 07:15:00 +0100
commit5f9ace8eb1d71b35c92156177465b066ebbc4a3e (patch)
tree5af8e80ecace78f4d165cb470062e6a2cd53c853 /features
parent5e05d6b8cf26c424378ef6091a4b38c2d424808e (diff)
downloadgitlab-ce-5f9ace8eb1d71b35c92156177465b066ebbc4a3e.tar.gz
Add 'Undo mark all as done' to Todos
Added the ability to 'Undo mark all as done' todos marked as complete with 'Mark all as done' in the 'Todo' tab of the Todo dashboard. The operation undos only the todo previously marked as done with the 'Mark al as done' button.
Diffstat (limited to 'features')
-rw-r--r--features/steps/dashboard/todos.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/features/steps/dashboard/todos.rb b/features/steps/dashboard/todos.rb
index eb906a55a83..9f01dff776f 100644
--- a/features/steps/dashboard/todos.rb
+++ b/features/steps/dashboard/todos.rb
@@ -159,7 +159,11 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
end
def should_not_see_todo(title)
- expect(page).not_to have_content title
+ expect(page).not_to have_visible_content title
+ end
+
+ def have_visible_content(text)
+ have_css('*', text: text, visible: true)
end
def john_doe