dinner_dash's People
Forkers
vanegomezdinner_dash's Issues
Unauthenticated User CANNOT Perform Admin Func - create item listings
As an unauthenticated user,
I should not have admin functionality or view admin screens:
I should not be able to
create item listings,
a Flash error should pop up,
stating I cannot perform action.
Admin - authentic admin user - assign/remove items to categories
As an authenticated admin user,
I should be able to assign items to categories
When I go to the index page of all items,
And I click view item,
I should see checkmark options for categories to
check/uncheck,
And I make my changes,
And I click save,
I expect to be redirected back to a page displaying list of all items.
An Unauthenticated User Can View Items in Cart
As an unauthenticated user, I can
When I visit 'items'
And Click a single item
And click "Add to Cart"
And click "View My Cart"
I expect to see the items I have added to my cart
An Authenticated User Can NOT Login Again
As an Authenticated User
When I visit '/login'
I expect to NOT be able to login again
An Authenticated use can browse all items
As an authenticated user, I can:
When I visit '/items'
I see all available items
Setup Project and Create Repo
An Admin Can View Details of an Individual Order
As an authenticated Admin
When I visit '/admin'
And I see a listing of all Orders
And I click on an Individual Order
I expect to be able to see:
- Order Date & Date
- Purchasers Full Name & Email
- Each Item on the Order (linked)
- Total for the Order
- Status for the order
Authenticated User - log in
As an Authenticated User
when I visit root url '/dinnerdash/
and I click on login button
and I fill in my username
and I fill in my password
and I click 'Login' button
then I'm back on current page
Unauthenticated User CANNOT Make themselves an admin
As an unauthenticated user,
I should be able to make myself an admin,
a Flash error should pop up,
stating I cannot perform action/I do not have access
and redirect me to the log in page
An Unauthenticated User Can browse by selected Category
As an Unauthenticated User
When I Visit '/items'
And I select an item from the dropdown "Categories"
I see only items from that selected Category
An Unauthenticated User Can Add Items to Cart
As an unauthenticated user
When I visit '/items'
And click to view a single item
And click "Add to Cart"
I expect the item to be added to My Cart
An Authenticated User can Increase the quantity of a item in my cart
As an Authenticated User
When I visit '/my-cart'
And I update the quantity of items in my cart
I expect the Total Amount to update as well
Unauthenticated User CANNOT Perform Admin Func - remove items from categories
As an unauthenticated user,
I should not have admin functionality or view admin screens:
I should not be able to
remove items from categories,
(a button/link to remove should not be available)
Unauthenticated User CANNOT Perform Admin Func - hide an item (item not available to be sold)
As an unauthenticated user,
I should not have admin functionality or view admin screens:
I should not be able to
retire an item from being sold.
(aka hide an item from being browsed)
Authenticated User can logout
As Authenticated User
when I'm logged in
and I click on 'Logout' button/link
then I'm back on current page
An Unauthenticated User CANNOT View Other User's Data
As an unauthenticated user,
I cannot view another user's private date
(aka current data)
Admin - authentic admin user - modify exisiting items'
As an authenticated admin user,
I should be able to modify item listings,
I should see an option to edit an item,
And when I click Edit Item,
I should see a prefilled form with the items'
current information,
And I edit info,
(aka edit name, description, price, and photo)
And click Update Item,
I expect to to be directed to a page displaying the item and all of it's info.
an Authenticated User Cannot View Other User's Data
As a registered user,
when I sign in,
I cannot view another user's private data (aka current order.
An Authenticated User Can NOT View Another User's Data (Orders, Cart, etc.)
As an Authenticated User
And I visit 'my-cart'
I am only able to see MY items and no one else's
As an Authenticated user can View items in my cart
As an authenticated user, I can
When I visit 'items'
And Click a single item
And click "Add to Cart"
And click "View My Cart"
I expect to see the items I have added to my cart
Admin - authentic admin user - create item listings
As an authenticated admin user,
I should be able to create item listings,
When I click New Item,
And fill in name, description, price, & photo,
And click Create New Item,
I expect to be redirected to a page that displays the new item and its info
Admin - CANNOT modify any personal data aside from their own
As an Administrator, I cannot modify any personal data aside from my own.
When I click on an individual order and view order purchaser details,
-- OR --
When I click on buyer information,
And get redirected to a page that has all buy info,
I should not be able to edit buyer information.
As an Authenticated User can Remove an item from my cart
As an Authenticated User
When I visit '/my-cart'
And I see all items I have added to my cart
I expect to be able to click "remove" and remove the item from my cart
Unauthenticated User CANNOT Perform Admin Func - modify existing items
As an unauthenticated user,
I should not have admin functionality or view admin screens:
I should not be able to
modify exisiting items,
(name, description, price, and photo)
a Flash error should pop up,
stating I cannot perform action.
An Admin Can See All Info. From Dashboard
As a logged in Admin
When I visit '/admin'
I expect to see a dashboard where I can:
-See a listing of all orders
- total # of orders by status
- links for each order
- filter orders to display by status type
-ordered, paid, cancelled, completed
-link to transition to a different status
-link to "cancel" orders which are currently "ordered" or "paid"
-link to "mark as paid" if it is "ordered:
-link to "mark as completed" if it is "paid"
-Access details of an individual order - order date & time
- purchaser full name & email address
- for each item on the order
-name linked to item page
-quantity
-price
-line item subtotal
-total for the order
-status of the order
Unauthenticated User Browsing Items
As an unauthenticated user, I can:
When I visit '/items'
I see all available items
Admin - authentic admin user - create named categories for items
As an authenticated admin user,
I should be able to create named categories,
I should see an option (button) to Create New Category,
And when I click button,
I should see an empty form where I can enter the title of the new category being made
(aka "small plates)
And click Create Category
I expect to to be directed to an index page displaying all categories.
An Unauthenticated User Can Login WITHOUT Clearing Cart
As an Unauthenticated User
When I visit '/my-cart'
And click "Checkout"
I expect to be able to login without clearing the items in my cart
As a logged auth user - view past orders
as a logged in auth user
when I visit '/dinnerdash/:user/pastorders/'
then I see a linked list of each past orders
As a logged in Auth User visit past order User should be able to go to an item page (removed from the menu) and not able to add to cart
As a logged in Auth User visit past order,
User should be able to go to an item page (removed from the menu) and not able to add to cart
when I visit '/past-orders/
then I see a link lists of my past orders
and I click on a previous order
then I'm back on '/past-orders/number-order
then I see for that order:
• a list of items with quantity ordered and line-item subtotals,
• links to each item description page
• the current status of the order
• order total price
• date/time order was submitted
• if completed or cancelled, display a timestamp when that action took place
then I click on an removed item from the menu
then I'm back on the item page
then I see :
• item description
Unauthenticated User CANNOT Perform Admin Func - Create categories
As an unauthenticated user,
I should not have admin functionality or view admin screens:
I should not be able to
create named categories for items
(eg: "Small Plates"),
a Flash error should pop up,
stating I cannot perform action.
Admin - access deets of individual order - order date/time
As an Administrator, I can also view an order "dashboard" where I can:
Click on an individual order,
Redirect to a page showing the details of that order, which include:
Order date and time
Purchaser full name and email address
For each item on the order:
Name linked to the item page
Quantity
Price
Line item subtotal
Total for the order
Status of the order
An Unauthenticated User Can Remove Items from Cart
As an unauthenticated user
When I visit '/my-cart'
And I see all items I have added to my cart
I expect to be able to click "remove" and remove the item from my cart
As a logged in Auth User visit past order and go to an item (existing on the menu) description page
As a logged in Auth User visit past order
User should be able to go to an item (existing on the menu) description page
when I visit '/past-orders/
then I see a link lists of my past orders
and I click on a previous order
then I'm back on '/past-orders/number-order
then I see for that order:
• a list of items with quantity ordered and line-item subtotals,
• links to each item description page
• the current status of the order
• order total price
• date/time order was submitted
• if completed or cancelled, display a timestamp when that action took place
then I click on an existing item on the menu
then I'm back on the item page
the I see :
• item description
• item link to add to cart
Logged in Auth User - visit past order
when I visit '/past-orders/
then I see a link lists of my past orders
and I click on a previous order
then I'm back on '/past-orders/number-order
then I see for that order:
• a list of items with quantity ordered and line-item subtotals,
• links to each item description page
• the current status of the order
• order total price
• date/time order was submitted
• if completed or cancelled, display a timestamp when that action took place
As a logged in Auth User visit past order User should be able to go to an item page (existing on the menu) and add item to cart
As a logged in Auth User visit past order
User should be able to go to an item page (existing on the menu) and add item to cart
when I visit '/past-orders/
then I see a link lists of my past orders
and I click on a previous order
then I'm back on '/past-orders/number-order
then I see for that order:
• a list of items with quantity ordered and line-item subtotals,
• links to each item description page
• the current status of the order
• order total price
• date/time order was submitted
• if completed or cancelled, display a timestamp when that action took place
then I click on an existing item on the menu
then I'm back on the item page
then I see :
• item description
• item link to add to cart
then I fill quantity
then I click on 'add to cart'
then I see cart increased by quantity ordered
An Authenticated User Can NOT Make Themselves an Admin
An Authenticated User
When I visit '/admin'
I expect to see a Permission Denied error.
I expect to NOT be able to make myself an Admin
Unauthenticated User CANNOT Checkout
As an unauthenticated,
When I click checkout,
a Flash error should pop up,
stating I need to be logged in to checkout.
Unauthenticated User CANNOT Perform Admin Func - assign items to categories
As an unauthenticated user,
I should not have admin functionality or view admin screens:
I should not be able to
assign items to categories,
a Flash error should pop up,
stating I cannot perform action.
As an Authenticated user can add an item to my cart
As an unauthenticated user
When I visit '/items'
And click to view a single item
And click "Add to Cart"
I expect the item to be added to My Cart
Admin - authenticated admin user - make item avail/unavail
As an authenticated admin user,
I should be able to retire an item
When I go to the index page of all items,
And I click to view item
And I click dropdown menu to make item available or unavailable
And I click save,
I expect to be redirected back to the page displaying list of all items, unavailable items in red/separated from available items.
An Authenticated User Can browse by selected Category
As an Authenticated User
When I Visit '/items'
And I select an item from the dropdown "Categories"
I see only items from that selected Category
An Unauthenticated User Can Update Quantity of Items in Cart
As an unauthenticated user
When I visit '/my-cart'
And I check the quantity of items in my cart
I expect the Total Amount to update as well
An Authenticated User Can Not View Admin Screens or Have Admin Functionality
As an Authenticated User
And I visit '/admin'
I will receive a Permission Denied message.
I expect to NOT be allowed to see admin screens or have admin functionality
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.