Storyboard Extension >

Example Container

If you use the Concordion's Example Command this will append all cards added to the storyboard while the example is being executed to the example element.

Behaviour:

Example 1: Add To Example

<div class="testinput" concordion:example="example1">
    <span concordion:assertTrue="addCard(#TEXT)">Card 1</span>
</div>
	

When this snippet is run with this fixture, this results in a new section being added to the Example and the section is collapsed.


  • Example 1: Add To Example

    Click image to see example

Example 2: Add Failure Card

<div class="testinput" concordion:example="example1">
    <span concordion:assertTrue="addFailureCard(#TEXT)">Failure</span>
</div>
	

When this snippet is run with this fixture, this results in a new section being added to the Example and the section is collapsed and the section title getting a failure status.


  • Example 2: Add Failure Card

    Click image to see example