6 Scenario: Register new role
7 Given I am on the new role page
8 When I fill in "Name" with "name 1"
10 Then I should see "name 1"
12 # Rails generates Delete links that use Javascript to pop up a confirmation
13 # dialog and then do a HTTP POST request (emulated DELETE request).
15 # Capybara must use Culerity/Celerity or Selenium2 (webdriver) when pages rely
16 # on Javascript events. Only Culerity/Celerity supports clicking on confirmation
19 # Since Culerity/Celerity and Selenium2 has some overhead, Cucumber-Rails will
20 # detect the presence of Javascript behind Delete links and issue a DELETE request
21 # instead of a GET request.
23 # You can turn this emulation off by tagging your scenario with @no-js-emulation.
24 # Turning on browser testing with @selenium, @culerity, @celerity or @javascript
25 # will also turn off the emulation. (See the Capybara documentation for
26 # details about those tags). If any of the browser tags are present, Cucumber-Rails
27 # will also turn off transactions and clean the database with DatabaseCleaner
28 # after the scenario has finished. This is to prevent data from leaking into
31 # Another way to avoid Cucumber-Rails' javascript emulation without using any
32 # of the tags above is to modify your views to use <button> instead. You can
33 # see how in http://github.com/jnicklas/capybara/issues#issue/12
36 Given the following roles:
42 When I delete the 3rd role
43 Then I should see the following roles: