Logo: Relish

  1. Sign in

Project: Sct

Style admin section

  • @admin
  • @styles
  • @refactor

In order to have section where I can administer Styles for Font
As Tomáš
I need Styles admin section of the app

Scenarios
Listing Styles for Font
Given
I logged in as 'Tomáš'
And
I created 'Tabac' Font with specimen
And
I follow 'Fonts'
When
I press 'Styles'
Then
I should see 'Styles For Tabac Font'
Getting to add Style for Font
Given
I logged in as 'Tomáš'
And
I created 'Tabac' Font with specimen
And
I follow 'Fonts'
And
I press 'Styles'
When
I follow 'New'
Then
I should see 'New Style For Tabac Font'
Adding Style for Font
Given
I logged in as 'Tomáš'
And
I created 'Tabac' Font with specimen
And
I follow 'Fonts'
And
I press 'Styles'
When
I follow 'New'
And
I fill in 'Name' with 'Extra Condensed Light Italic'
And
I fill in 'Short name' with 'ECL Italic'
And
I fill in 'Dollar price' with '79'
And
I fill in 'Euro price' with '72'
And
I fill in 'Crown price' with '720'
And
I fill in 'Flags' with 'for_all_glyphs'
And
I attach file for 'Opentype'
And
I press 'Save'
Then
I should see 'Style for Tabac Font was successfully created.'
Destroying Style
Given
I logged in as 'Tomáš'
And
I created 'Light' Style for 'Tabac' Font
And
I follow 'Fonts'
And
I press 'Styles'
When
I press 'Delete'
Then
I should see 'Style for Tabac Font was successfully destroyed'
Editing Style
Given
I logged in as 'Tomáš'
And
I created 'Light' Style for 'Tabac' Font
And
I follow 'Fonts'
And
I press 'Styles'
When
I press 'Edit'
And
I fill in 'Name' with 'Bold'
And
I press 'Save'
Then
I should see 'Style for Tabac Font was successfully updated'
Checking category to style
Given
I logged in as 'Tomáš'
And
I created 'Light' Style for 'Tabac' Font
And
I follow 'Fonts'
And
I press 'Styles'
When
I press 'Edit'
Then
I check 'fun_category'
And
I press 'Save'
Then
I should see 'Style for Tabac Font was successfully updated'
Adding category to style
Given
I logged in as 'Tomáš'
And
I created 'Light' Style for 'Tabac' Font
And
I follow 'Fonts'
And
I press 'Styles'
When
I press 'Edit'
And
I check 'fun_category'
And
I check 'symbols_category'
When
I press 'Save'
Then
I should see 'fun_category' checked
And
I should see 'symbols_category' checked
Editing style position in font
Given
I logged in as 'Tomáš'
And
I created 'Light' Style for 'Tabac' Font
And
I follow 'Fonts'
And
I press 'Styles'
When
I press 'Edit'
And
I fill in 'Position' with '666'
And
I press 'Save'
Then
I should see '666' in 'style[position]' input
Erasing tags
Given
I logged in as 'Tomáš'
And
I created 'Light' Style for 'Tabac' Font
And
I follow 'Fonts'
And
I press 'Styles'
And
I press 'Edit'
And
I fill in 'Flags' with 'tester'
And
I press 'Save'
When
I fill in 'Flags' with ''
And
I press 'Save'
Then
I should see '' in 'style[flags]' input
Changing prices for all styles
Given
there are assorted Fonts with Styles created
And
I logged in as 'Tomáš'
And
I follow 'Fonts'
And
I press 'Styles'
And
I press 'Edit'
And
I fill in 'Euro price' with '62'
When
I check 'Price for all styles'
And
I press 'Save'
And
I follow 'List'
Then
I should not see '72'
And
I should see '62'

Last published almost 7 years ago by pepe.