Four-person pivot in Mod 3
amaxwellblair / the_pivot Goto Github PK
View Code? Open in Web Editor NEWThree-person pivot in Mod 3
Three-person pivot in Mod 3
Redirect to Store Admin tab on dashboard when item is created
As a guest user
When I visit "/"
And I click on "Register"
And I check the box for "create store"
And I fill in email with "[email protected]"
And I fill in name with "Josh Mejia"
And I click submit
Then I should be redirected to "/dashboard"
And I should see a status of "Pending"
User visits "/"
click on "Farmer Market"
expects to be on "/farmer-market/items"
click on "Add to cart"
User visits "/"
click on "Other Market"
expects to be on "/other-market/items"
click on "Add to cart"
click on "Cart"
expect to be on "/cart"
click on "Checkout"
expect to be on "/dashboard"
views "Order ID: 1"
Visitor visits "/farmer-market"
views "Bacon"
views "Price: $9.00"
views "Welcome to Farmer Market!"
views "Farmer Market is a farm to table food stall located in Western Pennsylvania"
Guest specific stories
Generic User specific stories
These stories will be new waffle cards.
Try to be as specific as possible.
Write in the "As a user I..." style.
If not sure of a specific route, either make a choice or mark with the "Help Wanted" label.
Enough user stories to work on for AT LEAST 3 days
Check out the project on Heroku early and often.
As a non-logged in user
I visit "/login"
and I fill in Username with "Admin"
and I fill in password with "password"
and I click login in
Then I am on "Dashboard"
And I see Platform Admin Dashboard Tab
As a logged in user
I visit "/dashboard"
And I click on "Register a new Market"
And I fill in Market Name with "My Martek"
And I fill in Market Image with "sample.png"
And I click on "Register Store"
Then I am taken to "/dashboard"
And I see "Store status, pending"
As a logged in Platform Admin
I visit "/dashboard"
And I see "My Market is pending" in my Admin Dashboard
And I click on "approve"
Then I no longer see My Market in the dashboard
And I visit "/my-market"
And I see a store page
And I do not see a pending message
That needs to be a thing
Visitor visits "/"
click on "Add to Cart"
click on "Cart"
Expects to be on "/cart"
Views "Bacon"
As a logged in user
I visit "/"
And I click on "My Account"
And I expect to be on "/dashboard"
And I do not view "Store Admin"
Start putting together multitenancy routing for our new level of users. Refer to Tuesday's lesson from Nate.
As a logged in Platform Admin
I visit "/dashboard" and I click on "stores" tab
and I click on "Suspend Store" next to "My Market"
Then I see My Market marked as Suspended
And when I visit "/my-market"
I see "This store has been suspended by Carrots N Stuff"
User visits "/farmer-market"
click on "Add to cart"
click on "Cart"
Expects to be on "/cart"
click on "Checkout"
Expects to be on "/dashboard"
Views "Order ID: 1"
Visitor visit "/"
clicks on "Register"
fills in username: "Allan"
fills in email: [email protected]
fills in password: password
fills in address: 0 Fake lane, NJ
clicks on submit
Expects to be on "/dashboard"
views "Welcome Allan"
A logged in store admin visits "/dashboard"
and clicks on "Store Admin Information"
and views "Order ID: 1"
and views "Bacon"
and views "$9.99"
Figure out which tests are useful and which can be scrapped
As a user
When I visit "/dashboard"
Click on "Create store"
Expect to be on "/user/:id/edit"
fill in name: "Farmer Market"
fill in description: "This place is great!"
fill in image url: "something.com/pic"
click on submit
Then I should be redirected to "/dashboard"
And I should see "Status: Pending"
delete store_admin_can_create_items_spec
Do not use factory girl due to its unstable item creation
create test data from test into test helper
Start putting together what the database should look like and what relationships we need
Visitor visit "/"
click on "Add to cart"
click on "Cart"
Expect to be on "/cart"
click on "Check out"
Expect to be on "/login"
A logged in platform admin visits "/dashboard"
clicks on "Platform Admin Information"
views "Store Statuses:"
views "Farmers Market"
views "Pending"
Shop Owner Specific stories
Platform Admin specific stories
These stories will be new waffle cards.
Try to be as specific as possible.
Write in the "As a user I..." style.
If not sure of a specific route, either make a choice or mark with the "Help Wanted" label.
As a visitor
When I visit '/'
And I click on Stores
I expect to be on '/stores'
I should see all of the stores
Hypothetical views of the most important pages
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.