mozilla/marketplace-tests — pull request #51 by ajalgaonkar (2012-06-22 09:35:25+00:00)
Title: Statistics tests - by Adi

The following are the tests added to the suite:

1. test_statistics_graph_is_visible:
* Initial page load will check the graph container and a few page objects presence.
* Test case on moz-trap
#310 Created by ajalgaonkar on 2012-06-05

2. test_next_report_navigation:
* Checks if the "Previous" button is initially disabled
* Clicks on the "Next" button 10 times and checks the previous button visibility
* Clicks the "Previous" button 10 times and check the previous button visibility
* Once done it checks the "Previous" button is disabled at the end of the cycle.

3. test_report_date_validity:
* Checks that the first date on the report when the report is loaded is the same as "Today's" date
OR
* It is same as "Yesterdays" date.
*Both are valid

4. test_all_options_for_sorting_chart:
Based on Moz-Trap testcase : #303
* Clicks on all the sorting links: one by one in order
* "Statistics Type" is outermost loop, "Group by" is the second loop, while "For last" is the innermost loop.
* At each point the links are clicked and the visibility of Graph and links is checked and accounted for the cases as to when they are disabled and enabled.

Note: Test 4. is marked for XFail cause it still has regression bugs: https://bugzilla.mozilla.org/show_bug.cgi?id=767079