Shopping Lens Search with no query
----------------------------------------------------
Shopping lens results are not displayed if there is no search query.

Setup:
Internet connectivity.

Actions:
Open the dash, make sure search box is empty.

Expected Result:
'Applications' and 'Files & Folders' categories are displayed in dash home lens, but
no shopping results -- i.e. there is no 'More suggestions' category.

Shopping Lens Search
----------------------------------------------------
Shopping lens results are displayed in dash home lens.

Setup:
Internet connectivity.

Actions:
Open the dash, type a search string (e.g. "playstation").

Expected Result:
Verify that Applications / Files & Folders / Music / Video / More suggestions home lens categories
(if results are available for them) are ordered by number of results, with personal content taking precedence
(applications, local music files, local videos etc. are considered personal content) over shopping results,
with an exception that 'More suggestions' is displayed no further than on 3rd position.
Verify that shopping results have orange price ribbons on top of item pictures.

Shopping Lens Preview
----------------------------------------------------
A preview for shopping lens is displayed.

Setup:
Internet connectivity.

Actions:
Right click a shopping results item in the dash home lens.

Expected Results:
Preview of selected item is displayed. The preview should contain item name as a title, an image, item description and
'Buy' button.

Shopping Lens Preview navigation
----------------------------------------------------
Shopping lens previews can be navigated with left/right arrows or keys.

Setup:
Internet connectivity.

Actions:
Right click a shopping results item in the dash home lens, then click left/right arrows in the preview or left/right keyboard
keys.

Expected Results:
Preview of selected item is displayed. Preview of next/previous item is displayed on left/right click.

'Buy' action in the Shopping Lens Preview
----------------------------------------------------
Clicking 'Buy' button opens up a web page to complete purchase.

Setup:
Internet connectivity.

Actions:
Right click a shopping results item in the dash home lens, then click 'Buy' button.

Expected Results:
Web site for selected item is opened in web browser, with an option to complete purchase.

Previewing item after losing network connectivity
-------------------------------------------------
Previewing and item after losing network should display an empty preview.

Setup:
Internet connectivity.

Actions:
Perform a search that returns results in the dash home "More suggestions" category.
Disconnect from the internet, afterwards try previewing any of the results.

Expected Results:
An empty preview should be displayed. Note that performing searches without internet connectivity will not return any results in the "More suggestions" category.

Emblems on icons provided by the Shopping lens
----------------------------------------------------
Whenever there are results from the shopping lens, emblems are present on the icons.

Setup:
Internet connectivity.

Perform a search so that some results in the "More suggestions" category are displayed. (for example search for "novel")

Expected Results:
All items that are displayed have an icon categorizing the product - either a music icon, book, movie, or a generic shopping bag icon along with a price.

'Disable' Shopping Lens Search
----------------------------------------------------
Disabling the shopping lens should not show any result.

Setup:
Internet connectivity.

Actions:
Disable the online/commercial search in gnome-control-center or directly in gsettings
(com.canonical.Unity.Lenses "remote-content-search" to none)
Perfom a search in the home dash

Expected Results:
No "More suggestions" category should appear. If the lens is run manually,
a "Unity shopping lens online search disabled." message should appear.
