Skip to content

Commit

Permalink
more Gherkin scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
hofstef committed Sep 9, 2022
1 parent 4a3355e commit 61fc891
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 25 deletions.
25 changes: 0 additions & 25 deletions spec/icon-configuration.feature

This file was deleted.

40 changes: 40 additions & 0 deletions spec/icon-set/customize-icon-set.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Feature: Icon Configuration

In order to model different domains, the icon set needs to be configurable.

Scenario: Add pre-built icon to icon set
Given The icon set is in default configuration
When I add the "Business" icon as an actor between "Group" and "System"
And I save the icon set
Then The pallet contains 4 icons for actors
And the order of these icons is "Person", "Group", "Business", and "System".

Scenario: Add custom icon to icon set
Given The icon set is in default configuration
And A custom icon named "my-icon.svg" in my available icons
When I add "my-icon" as a work object to the icon set
And I save the icon set
Then the pallet contains 1 more work object than before
And "my-icon" is at the bottom of the pallet's work objects


Scenario: Make custom icon available
Given I have a SVG file named "my-icon.svg" on my harddrive
And the icon has a square outline
When I upload "my-icon.svg"
Then there is 1 more icon available than before
And the uploaded icon is included in the available icons as "my-icon"
And the available icons are sorted alphabetically
And the "my-icon" is not selected for the icon set


Scenario: Replace available custom icon
Given The available icons include a custom icon named "my-icon"
And "my-icon" is not selected for the icon set
And I have a different icon with the same name "my-icon.svg" on my harddrive
When I upload "my-icon.svg"
Then there is the same number of icons available as before
And the uploaded icon is included in the available icons as "my-icon"
And the available icons are sorted alphabetically
And the "my-icon" is not selected for the icon set

7 changes: 7 additions & 0 deletions spec/icon-set/share-icon-set.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Feature: Share icon set

If multiple users want to use the same, agreed-upon, non-default icon set, they need a way of sharing this icon set.

Scenario: Export icon set

Scenario: Import icon set
5 changes: 5 additions & 0 deletions spec/import-export/import-story.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Feature: Import domain story from file

Scenario: Imported story uses same icon set

Scenario: Imported story uses different icon set

0 comments on commit 61fc891

Please sign in to comment.