Skip to content

Instantly share code, notes, and snippets.

@akasper
Forked from ChillPenguinX/device_info.feature
Last active December 11, 2015 17:58
Show Gist options
  • Save akasper/4638125 to your computer and use it in GitHub Desktop.
Save akasper/4638125 to your computer and use it in GitHub Desktop.
@javascript
Feature: Device Info
As a Tapjoy employee
I want to search devices
So that I can efficiently manage their clicks, apps and rewards
Scenario: Visiting the "device info" page without a search
Given I have not submitted any searches on the "device info" page
When I visit the "device info" page
Then I should see the search bar
And I should not see the "Apps Section"
And I should not see the "Clicks Section"
And I should not see the "Devices Section"
Scenario Outline: Searching for a device on the "Device Info Page"
Given a device with <name> "<value>"
And I am on the "device info" page
When I fill in "search" with <value>
And I select "<name>" from the dropdown
And I click "Search"
Then I should be on the "device info" page
And I should see the device
And I should see all of the device's apps
And I should see all of the device's clicks
Examples:
| name | value |
| Email Address | [email protected] |
| MAC Address | ... |
| Device ID | ... |
Scenario: Having a single device selected
Given I have completed a device info search with at least one result
When I select a device
Then I should see the "Devices Section"
And it should start loading the "Apps Section"
And it should start loading the "Clicks Section"
Scenario: Having multiple devices returned
Given multiple devices with the same email address
When I do a device info search by email address with that address
Then I should not see the "Apps Section"
And I should not see the "Clicks Section"
When I select one of the devices
And the others should form a scrollable list on the left side
Scenario: Getting apps back
Given I have received a page of apps back
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment