Sha256: b6201b475ea9b52fe96044b5fbd6e1ef17b22fe0c1e57b34d4981580cfa6c6e1

Contents?: true

Size: 1.37 KB

Versions: 3

Compression:

Stored size: 1.37 KB

Contents

Feature: Delete a page

  Background:
    Given I open the application

  @javascript
  Scenario: Delete a page
    When I right click the node with path "./home.txt"
    And I follow "Delete node"
    Then I should see dialog box titled "Confirm"

    When I press "Yes" within the dialog box
    Then I should not see the node titled "home"

    When I reload the application
    Then I should not see the node titled "home"

  @javascript
  Scenario: Delete a page when tab is open
    When I click the node with path "./home.txt"
    And I double click the node with path "./folder"
    And I double click the node with path "./folder/subfolder"
    And I click the node with path "./folder/subfolder/ruby.txt"
    And I right click the node with path "./home.txt"
    And I follow "Delete node"
    Then I should see dialog box titled "Confirm"

    When I press "Yes" within the dialog box
    Then I should not see the node titled "home"
    And I should have the following open tabs:
      | ruby |
    And I should see page title "Rwiki ./folder/subfolder/ruby.txt"

    When I right click the node with path "./folder/subfolder/ruby.txt"
    And I follow "Delete node"
    Then I should see dialog box titled "Confirm"

    When I press "Yes" within the dialog box
    Then I should not see the node titled "ruby"
    And I should have no open tabs
    And I should see page title "Rwiki"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rwiki-0.2.3 features/delete_page.feature
rwiki-0.2.2 features/delete_page.feature
rwiki-0.2.1 features/delete_page.feature