To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorStores Admin
In order to return useful results in Stores API
As the Administrator
I want to populate the database with stores data
- Background
-
- Given
-
these store types exist in the database:
name Model Store Plastic Kits Diecast Models Accessories Slot Cars Radio Controlled Model Rail - And
-
these services exist in the database:
name Mail Order Credit Cards Accepted eCommerce Meet and Greet Kids Club Special offers E-Mail Selected Club Membership Discount
- Scenarios
-
- Add a new Store
-
- Given
- I am logged in
- And
- I am on the admin homepage
- When
- I follow "Add a new store"
- And
-
I fill in the following:
Name Oakland Models Address Barnstones West Street, Clipsham, Rutland Postcode PE10 9EH Telephone 7885613279 Website www.jbmodelshop.co.uk Email [email protected] Synopsis Lorem Ipsum Lorem Ipsum Lorem Ipsum - And
- choose "Green" within "Colour Scheme"
- And
-
fill in the following:
Monday 9am-7pm Tuesday 9am-7pm Wednesday 9am-7pm Thursday 9am-7pm Friday 9am-7pm Saturday 9am-7pm Sunday 9am-7pm - And
- select "Plastic Kits" from "Confirm Store Type"
- And
- select "Slot Cars" from "Confirm Store Type"
- And
- select "Mail Order" from "Confirm Store Services"
- And
- select "Credit Cards Accepted" from "Confirm Store Services"
- And
- select "Selected Club Membership Discount" from "Confirm Store Services"
- And
- attach the file "image.jpg" to "Store Image"
- And
- attach the file "logo.png" to "Store Logo"
- And
- I press "Create Store"
- Then
- I should see "Store was successfully created."
- And
- should see "Store Details: Oakland Models"
- And
- should see "Plastic Kits"
- And
- should see "Slot Cars"
- And
- should see "Mail Order"
- And
- should see "Credit Cards Accepted"
- And
- should see "Selected Club Membership Discount"
- And
- I should see the image "image.jpg"
- And
- I should see the image "logo.png"
- Login and Stores Listing
-
- Given
-
these stores exist in the database:
name address Oakland Models Barnstones West Street, Clipsham, Rutland JB's Models 53 Great Northern Gardens, Bourne, Lincs - When
- I login
- Then
- I should see a list of stores to manage
- And
- a link to add a new store
- Editing a Store
-
- Given
- I am logged in
- And
-
the following store:
name Oakland Models address Barnstones West Street, Clipsham, Rutland postcode LE15 7SJ telephone 01780410620 website www.oaklandmodels.co.uk email [email protected] synopsis Pretty big text colour_scheme Green - When
- I go to the admin homepage
- And
- I follow "edit"
- And
-
I fill in the following:
Name Oakland Models EDITED Address Barnstones West Street, Clipsham, Rutland EDITED Postcode PE10 9EH EDITED Telephone 7885613279 EDITED Website www.EDITED.co.uk Email [email protected] Synopsis Lorem Ipsum EDITED - And
- choose "Red" within "Colour Scheme"
- And
- select "Diecast Models" from "Confirm Store Type"
- And
- unselect "Plastic Kits" from "Confirm Store Type"
- And
- unselect "Slot Cars" from "Confirm Store Type"
- And
- select "Kids Club" from "Confirm Store Services"
- And
- unselect "Mail Order" from "Confirm Store Services"
- And
- unselect "Credit Cards Accepted" from "Confirm Store Services"
- And
- unselect "Selected Club Membership Discount" from "Confirm Store Services"
- And
- I press "Update Store"
- Then
- I should see "Store was successfully updated."
- And
- should see "Store Details: Oakland Models EDITED"
- And
- should see "Address: Barnstones West Street, Clipsham, Rutland EDITED PE10 9EH EDITED"
- And
- should see "Phone: 7885613279 EDITED"
- And
- should see "Site: www.EDITED.co.uk"
- And
- should see "Email: [email protected]"
- And
- should see "Synopsis: Lorem Ipsum EDITED"
- And
- should see "Color Scheme: 190,190,190"
- And
- should see "Diecast Models"
- And
- should see "Kids Club"
- Store Search
-
- Given
- I am logged in
- And
-
these stores exist in the database:
name address Oakland Models Barnstones West Street, Clipsham, Rutland JB's Models 53 Great Northern Gardens, Bourne, Lincs - And
- I am on the admin homepage
- When
- I fill in "search" with "Oakland Models"
- And
- press "Go"
- Then
- I should see "Oakland Models - Barnstones West Street, Clipsham, Rutland"
- When
- I fill in "search" with "Something not in the db"
- And
- press "Go"
- And
- I should see "No stores where found with this name: Something not in the db"
- Then
- I should not see "Oakland Models - Barnstones West Street, Clipsham, Rutland"
- And
- should not see "JB's Models - 53 Great Northern Gardens, Bourne, Lincs"
- When
- I fill in "search" with "JB"
- And
- press "Go"
- Then
- I should see "JB's Models - 53 Great Northern Gardens, Bourne, Lincs"
- When
- I fill in "search" with "jb"
- And
- press "Go"
- Then
- I should see "JB's Models - 53 Great Northern Gardens, Bourne, Lincs"
Last published almost 7 years ago by oliverbarnes.