I'm going to assume that this is part of the deletion that confuses you, as the other stuff is pretty standard (setting givens and the following links, etc.)
So what do you use as an abstraction of your browser? Webrat? Capybara? It seems that you have a βdeleteβ link, is it enough to do something like this?
And /I delete "(.*)"/ do |person| # Use webrat or capybara to find row based on 'person' text... then find 'delete' link in row and click it # example (untested, pseudo code) within(:xpath, "//table/tr[contains(#{person})") do find('.deleteLink').click end end
And I believe that something like βnot to be seenβ is probably supported out of the box with webrat / capybara generated steps.
Is this what you are looking for?
source share