Skip to content

Instantly share code, notes, and snippets.

@davehunt
Last active August 28, 2015 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davehunt/be86faffe8cc4e9116be to your computer and use it in GitHub Desktop.
Save davehunt/be86faffe8cc4e9116be to your computer and use it in GitHub Desktop.

test_details_page.py

test_that_application_page_contains_proper_objects

  • open home page
  • ✓ page title
  • search for free app
  • click first app in results
  • ✓ page title
  • ✓ name matches search term
  • ✓ icon visible
  • ✓ heading matches app name
  • ✓ developer name visible
  • ✓ install/purchase visible
  • ✓ support email or site visible
  • ✓ description is visible
  • ✓ image preview section is visible
  • ✓ privacy policy link is visible
  • ✓ report abuse button is visible

test_that_reports_abuse_as_anonymous_user

  • open home page
  • ✓ page title
  • search for free app
  • click first app in results
  • ✓ page title
  • ✓ report abuse button is visible
  • click report abuse
  • ✓ report abuse box is visible
  • type abuse report
  • ✓ report abuse button is enabled
  • click report
  • ✓ report submitted successfully

test_that_reports_abuse_as_signed_in_user

  • open home page
  • ✓ page title
  • sign in as new user
  • ✓ logged in
  • search for free app
  • click first app in results
  • ✓ page title
  • ✓ report abuse button is visible
  • click report abuse
  • ✓ report abuse box is visible
  • type abuse report
  • ✓ report abuse button is enabled
  • click report
  • ✓ report submitted successfully

test_clicking_on_content_rating

  • open home page
  • ✓ page title
  • change region to 'restofworld'
  • search for free app
  • click first app in results
  • ✓ page title
  • ✓ wait for rating visible
  • click content ratings
  • ✓ page title
  • ✓ ratings table visible

test_home_page.py

test_that_header_has_expected_items

  • open home page
  • ✓ logo visible
  • ✓ search visible
  • ✓ sign in visible

test_that_verifies_categories_menu

  • open home page
  • ✓ categories menu name is 'Categories'
  • open categories menu
  • ✓ at least one category is present

test_opening_category_pages_from_categories_menu

  • open home page
  • repeat for first three categories (excluding Games):
    • open categories menu
    • click category
    • ✓ heading matches category name
    • ✓ page title
    • ✓ at least one app in present
    • ✓ new & popular tab is visible
    • ✓ popular tab class is 'active'
    • repeat for first three apps:
      • ✓ name is visible
      • ✓ icon is visible
      • ✓ rating is visible
      • ✓ install button is visible

test_that_verifies_nav_menu_tabs

  • open home page
  • click new tab
  • ✓ heading is 'New'
  • ✓ first app is visible
  • ✓ at least one app is present
  • click popular tab
  • ✓ heading is 'Popular'
  • ✓ first app is visible
  • ✓ at least one app is present

test_settings_dropdown_menu

  • open home page
  • sign in as new user
  • click edit account settings
  • ✓ page title
  • ✓ email visible
  • ✓ display name visible
  • ✓ region visible
  • ✓ save button visible
  • ✓ sign out button visible
  • open home page
  • click my apps
  • ✓ page title
  • click expand button
  • repeat for each app
    • ✓ screenshots are visible
  • open home page
  • sign in as existing user
  • ✓ expected footer links are visible
  • open home page
  • sign in as existing user
  • ✓ footer links have expected url suffix

test_purchase_app.py

test_that_user_can_purchase_an_app

  • open home page
  • sign in as new user
  • ✓ page title
  • change region to 'us'
  • search for paid apps
  • click first app
  • ✓ app price is not 'free'
  • ✓ app status is 'paid'
  • click install
  • create and confirm pin
  • ✓ app name is correct
  • click buy
  • ✓ app purchased successfully

test_reviews.py

test_that_checks_the_addition_of_a_review

  • open home page
  • sign in as new user
  • ✓ page title
  • search for free app
  • click first app in results
  • ✓ page title
  • ✓ review button text is 'Write a review'
  • click review button
  • submit review
  • ✓ new review is present

test_add_review_after_sign_in_from_details_page

  • open home page
  • ✓ page title
  • search for free app
  • click first app in results
  • ✓ page title
  • ✓ review button text is 'Sign in to review'
  • click review button
  • sign in as new user
  • submit review
  • ✓ new review is present

test_that_checks_the_editing_of_a_review

  • open home page
  • sign in as new user
  • ✓ page title
  • search for free app
  • click first app in results
  • ✓ page title
  • ✓ review button text is 'Write a review'
  • click review button
  • submit review
  • ✓ new review is present
  • open home page
  • search for free app
  • click first app in results
  • ✓ page title
  • ✓ review button text is 'Edit your review'
  • click edit review button
  • submit edited review
  • ✓ edited review is present

test_that_checks_the_deletion_of_a_review ======================================== * open home page * sign in as new user * ✓ page title * search for free app * click first app in results * ✓ page title * ✓ review button text is 'Write a review' * click review button * submit review * ✓ new review is present * open home page * search for free app * click first app in results * ✓ page title * click all reviews button * delete review * ✓ review deleted successfully * ✓ review is not present

test_search.py

test_that_searching_with_empty_field_using_submit_returns_results

  • open home page
  • ✓ page title
  • click search
  • ✓ page title
  • ✓ at least one result is present

test_that_the_search_tag_is_present_in_the_search_results

  • open home page
  • search for free app by name
  • ✓ heading contains 'result'
  • ✓ all results contain the search term

test_that_verifies_the_sort_region_from_search_results

  • open home page
  • ✓ page title
  • search for 'test'
  • ✓ sorted by text is 'Relevancy'
  • ✓ sorter header is visible
  • search by 'Relevancy' | 'Rating'
  • ✓ sorted by text is 'Relevancy' | 'Rating'
  • ✓ at least one result is present

test_that_verifies_the_search_suggestions_list_under_the_search_field

  • open home page
  • ✓ page title
  • type free app name in search
  • ✓ search suggestion list is visible
  • ✓ at least one search suggestion is present
  • ✓ all search suggestions contain the app name

test_that_checks_search_with_foreign_characters

  • open home page
  • search for 'dödá pápègoján'
  • ✓ page title
  • ✓ heading contains the search term

test_results_page_items

  • open home page
  • search for free app by name
  • click toggle app previews
  • repeat for the first 5 results:
    • ✓ install button is visible
    • ✓ icon is visible
    • ✓ rating is visible
    • ✓ screenshots are visible

test_users_account.py

test_create_new_user_using_fxapom

  • open home page
  • sign in as new user
  • ✓ sign in button is not visible
  • ✓ page title
  • open settings menu
  • ✓ user is signed in

test_user_can_sign_in_and_sign_out_from_home_page

  • open home page
  • sign in as new user
  • ✓ page title
  • ✓ user is signed in
  • click sign out
  • ✓ sign in button is visible

test_user_can_sign_in_and_sign_out_from_my_apps

  • open my apps page
  • sign in as new user
  • ✓ user is signed in
  • ✓ sign in button is not visible
  • click sign out
  • ✓ sign in button is visible

test_user_can_sign_in_and_sign_out_from_settings_page

  • open settings page
  • sign in as new user
  • ✓ user is signed in
  • ✓ sign in button is not visible
  • click sign out
  • ✓ sign in button is visible

test_editing_user_profile

  • open home page
  • sign in as new user
  • click edit account settings
  • ✓ first part of email matches display name
  • edit display name
  • save changes
  • ✓ settings saved succefully
  • refresh page
  • ✓ display name has been updated
  • open settings page
  • sign in as new user
  • ✓ recommendations are enabled
  • ✓ recommended tab is visible
  • disable recommendations
  • save changes
  • ✓ recommended tab is not visible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment