dinner_dash's People
Forkers
maxtedforddinner_dash's Issues
unauth user cart test
test that cart hasn't cleared after a user has logged in.
non-admin authenticated user can see order-item details
As a non-admin authenticated user,
When I visit "/order/:id"
I expect to see items with quantity and line item subtotals.
non-admin authenticated user sees past orders
as a non-admin authenticated user
when i visit 'user_path'
and i click the 'past orders' button
i see a list of past orders as links to view each one ('/order/:id'
admin can see order's status
As an authenticated admin,
When I visit "/admin/orders" and click on an order,
I expect to see the order's status.
test "Logout" correctly logs out
user can no longer see user functionality
Format Dates
Make dates across site user readable (orders index for user and admin, order show for user and admin)
admin can see purchaser's full name and email
As an authenticated admin,
When I visit "/admin/orders" and click on an order,
I expect to see the purchaser's full name and email address.
non-admin authenticated user does not see any admin pages
as a non-admin authenticated user
when i visit '/admin/anything'
i stay on my current page
non-admin authenticated user cannot access admin pages or options
as a non-admin authenticated user
when i visit '/admin/anypage'
i redirect to the items page
admin can see order item details
as an authenticated admin
when i visit '/admin/orders'
and i click on an order
i see item details including:
item name as a link to '/item/:id'
item quantity
item price
line item subtotal
unauthenticated user can change item quantity in cart
as an unauthenticated user
when i visit '/cart' and i click on the quantity textbox and enter '2'
i see 'item price X 2'
and i see the subtotal at the bottom change to reflect the quantity change
non-admin authenticated user can see order status
As a non-admin authenticated user,
When I visit "/order/:id",
I expect to see the order's current status ("ordered", "paid", "cancelled", "completed").
admin can add items
As an authenticated admin,
When I visit "/admin/items" and click "Add New Item",
I expect to see a page where I can create a listing with a name, description, price, and upload a photo.
admin can see a listing of all orders and access data for each
as an authenticated admin
when i visit '/admin/orders'
i see a listing of all orders as links to order show pages
admin can see total price of each order
As an authenticated admin,
When I visit "/admin/orders" and click on an order,
I expect to see the total price of that order.
non-admin authenticated user cannot become an admin
as a non-admin authenticated user
when i visit any page
i have no option to gain admin status
unauthenticated user can ONLY view their own cart
as an unauthenticated user
when i visit '/items' or '/cart'
i see only my own data
and when i visit '/items/cart/anotheruserid'
i am redirected to my own cart
admin can access details of each order
as an authenticated admin
when i visit '/admin/orders'
and i click on an order
i on that page i see order date and time
non-admin authenticated user has links to each item's description
as a non-admin authenticated user
when i visit '/order/:id'
I see links to each item description page ('/item/:id')
non-admin authenticated user does not see a login button
as a non-admin authenticated user
when i visit any page
i do not see a login button
unauthenticated user can view their cart
as an unauthenticated user
when i visit '/items' and click 'view cart'
i see a page with all items in my cart
non-admin authenticated user sees status message for cancelled/completed orders with timestamp
as a non-admin authenticated user
when i visit '/order/:id'
and my order status has changed to cancelled or completed
i see the status message (cancelled/completed) and a timestamp for it.
unauthenticated user cart changes when logging in
as an unauthenticated user
when I visit any page (application view) and login
i see my cart update and combine items from my unlogged in state and my logged in state
admin can create categories
as an authenticated admin
when i visit '/admin/categories'
and i click on 'add new category'
i can create a new category
non-admin authenticated user can see timestamp order submitted
As a non-admin authenticated user,
When I visit "/order/:id",
I expect to see date and time order was submitted (created_at).
admin can assign to and remove items from categories
as an authenticated admin
when i visit '/admin/items/:id'
i see a list of the items' current categories with links to remove or add them
unauthenticated user cannot view or use admin options
as an unauthenticated user
when i visit '/admin/items'
i expect to be redirected to the 'new_user_path' or 'login_path'
admin can edit items
as an authenticated admin
when i visit 'admin/items' or '/admin/items/:id"
and i click on 'edit item'
i see the edit items page (create items partial) where i can edit all fields
non-admin authenticated user cannot view other users data
As a non-admin authenticated user,
When I visit any page,
I expect NOT to be able to view other users' information.
test for 'Logout' button after user has signed in
unauthenticated user can add items to cart
as an unauthenticated user
when i visit '/items' and click the 'add to cart' button for an item
i see a message '#{item} added to cart'
unauthenticated user items page
as an unauthenticated user
when i visit '/items'
i see a list of all items
admin cannot edit user account details
As an authenticated admin,
When I visit any user page,
I expect NOT to be able to edit user account details.
admin can change item status between active and retired
as an authenticated admin
when i visit '/admin/items/:id'
i see a dropdown to select item status with choices for 'active' or 'retired'
Configure Skylight
configure skylight gem to monitor app's performance
admin can filter orders by status type
as an authenticated admin
when i visit '/admin/orders'
i see a dropdown menu to filter by status type (ordered, paid, cancelled, completed)
unauthenticated user can login from any page
as an unauthenticated user
when I visit any page (application view) and click 'login'
I see a form with text boxes for email and password
non-admin will not see retired items
As a non-administrator (signed in user or unauthenticated user),
When I visit "/items",
I expect NOT to see retired items.
non-admin authenticated user cannot buy retired item
As a non-admin authenticated user,
When I visit "/item/:id" and the item is retired,
I expect NOT to be able to add the retired item to my cart.
admin can see total num of orders by status
As an authenticated admin,
When I visit "/admin/orders",
I expect to see total numbers of orders by status.
non-admin authenticated user can only see retired menu items from past orders page
as a non-admin authenticated user
when i visit '/order/:id'
and i click on a link for a retired menu item
i see the item page with a message saying "This item is no longer available"
when i visit '/items'
i do NOT see retired menu items
admin user sees an admin home page when logging in
as an admin user
when i login
i see a welcome message "Welcome Admin What would you like to do?"
i see an admin page with buttons for orders, menu, and categories.
unauthenticated user cannot access admin options
as an unauthenticated user
and i visit any page
i do not see admin options
unauthenticated user filter by category
as an unauthenticated user
when i visit '/items'
i see a filter option
and i expect to be able to filter by category
non-admin authenticated user has a logout button
as a non-admin authenticated user
when i visit any page
i see a logout button
admin can change order status
As an authenticated admin,
When I visit "/admin/orders",
I expect to see a links to change the order's status:
- if status == "ordered" || "paid"
link_to "cancel" - if status == "ordered"
link_to "paid" - If status == "paid"
link_to "completed"
unauthenticated user can remove items from cart
as an unauthenticated user
when i visit '/cart' and click 'remove item'
i expect that item to be removed from the list of items in my cart
and i expect the order subtotal to reflect the item removal
Add <Length of Time Ago> for Dates for Orders
add columns in order index and order show for users and admin to display how long ago an order was placed
unauthenticated user cannot checkout unless logged in
as an unauthenticated user
when i visit '/cart'
and i click the 'checkout' button
i expect to be prompted to login or create an account
non-admin authenticated user sees an order's total price
as a non-admin authenticated user
when i visit '/order/:id'
i see the order's total price
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.