Sha256: df6782685d65282caa16c6d8f349874e86169e8cf860e9d83c45a4abbd990768

Contents?: true

Size: 1.3 KB

Versions: 4

Compression:

Stored size: 1.3 KB

Contents

@javascript
Feature: Table of Contents
  In order to add a table of contents to a card
  As a Decker
  I want to be able to set a minimum header number

  Background:
    Given I am signed in as Joe Admin
    And I create Basic card "Two Header" with content "<h1>I'm a header</h1><h1>me too</h1>"
    And I create Basic card "Three Headers" with content "<h1>I'm a header</h1><h2>Me too</h2><h1>same here</h1>"

 Scenario: always on setting
   When I edit "Basic+*type+*table of contents" setting content to "1"
   When I go to card "Onne Heading"
   Then I should see "Table of Contents"

 Scenario: minimum setting
   When I edit "Basic+*type+*table of contents" setting content to "2"
   And I go to card "Onne Heading"
   Then I should not see "Table of Contents"
   When I go to card "Three Heading"
   Then I should see "Table of Contents"

 Scenario: always off setting
   When I edit "Basic+*type+*table of contents" setting content to "0"
   And I go to card "Onne Heading"
   Then I should not see "Table of Contents"

#  Scenario: header with unwanted html
#    When I create a Basic card "One Noisy Header" with content "<h2>I'm <b>sooo</b> NOSY</h2>"
#    And I go to card "One Noisy Header"
#    Then I should see "<b>sooo</b> NOSY"
#    # in the content
#    And I should not see "sooo NOSY"
#    #in the table

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decko-0.3.3 features/table_of_contents.feature
decko-0.3.2 features/table_of_contents.feature
decko-0.3.1 features/table_of_contents.feature
decko-0.3.0 features/table_of_contents.feature