User:Petsproject/sandbox

As a user I should be able to search for all ‘approved and active products’ which match a key word.

Given that products which match with a keyword exist; When the user searches using the keyword; Then system displays all matching products from all sub-categories.

Given that an inactive product which matches with a keyword exists; When the user searches using the keyword; Then system excludes the inactive product from search result.

Given that an un-approved (draft) product which matches with a keyword exists; When the user searches using the keyword; Then system excludes the un-approved product from search result.

Given that X number of ‘approved and active’ products which match with the keyword exist; When the user search using the keyword; Then system displays a message “X items found”.

Given that no ‘approved and active’ products which match with the keyword exist; When the user search using the keyword; Then system displays a message “0 items found”.

As a user I want to see the relevance of search result in the order of matches to Name, Subcategory, Category and Description of Products.

Given that keyword matches with the Name of Product A, And keyword also matches with the Subcategory of Product B, When the user search using the keyword; Then Product A is displayed before Product B.

As a user I want to limit the number of products displayed in the search result unless I want to see all.

Given N is the configured page size of search result And there are more than N ‘approved and active’ products those matches a keyword; When the user search using the keyword; Then system must display only N number of products And as when the user scrolls down; Then system must load more products from the search result.

As a buyer I want to see all the products available to buy under a sub-category. Acceptance Criteria: Given there are in-stock approved products under a sub-category; When user selects the sub-category; Then system displays the top N number of all in-stock approved products within that sub-category, In descending order of the date-time items were added.

Given there are X number of in-stock approved products under a sub-category; When user selects the sub-category; Then system displays a message “X items found”.

Given there are NO in-stock approved products under a sub-category When user selects the sub-category; Then system displays a message “0 items found”.

Given there are in-stock approved products under a sub-category; When user scroll downs; Then system must load more items matched the search, In descending order of the date-time items were added.

UI features: Pagination - Load more results as scroll down Filter Sort Default - Date added descending

User Story - Items details: Product Name Location Short description Price Seller Name Seller Rating Photos with navigation options Video icon View details link

User story: As a buyer I want to view the categories of products under a department.

Acceptance Criteria: Given the department associated with the website is ABC The system must populate all categories of products under ABC department, on the menu bar.

User story: As a buyer I want to view the sub-categories of products under a category.