Skip to content

Instantly share code, notes, and snippets.

@abuiles
Created August 3, 2010 22:31
Show Gist options
  • Save abuiles/507273 to your computer and use it in GitHub Desktop.
Save abuiles/507273 to your computer and use it in GitHub Desktop.
Feature: account features
As an account
I want to login with my credentials
So that I can navigate to the dashboard page
And check my task groups
Background:
Given an account exists with email: "[email protected]"
@wip @selenium
Scenario: successful account login
Given the following task groups exist:
| name | account |
| image_moderation | the account |
| video_moderation | the account |
And the following task group workers exist:
| turk_worker_id | trusted? | task_group | task_group_completions_in_json |
| A26KYPW8H33TR9 | true | the 1st task group | [{"completion_time":"60","price":"0.1"},{"completion_time":"60","price":"0.1"},{"completion_time":"60","price":"0.1"}] |
| B26KYPW8H33TR9 | false | the 1st task group | [{"completion_time":"60","price":"0.21"}] |
| C26KYPW8H33TR9 | false | the 2nd task group | [{"completion_time":"35","price":"0.03"},{"completion_time":"15","price":"0.03"},{"completion_time":"40","price":"0.03"}] |
When I login with "[email protected]", "password"
Then I should see "Your tasks"
Then I should see the "task_groups" table:
| Identifier | Type | Completed | Average Completion Time | Average Hourly Rate | Workers | Trusted Workers |
| image_moderation | Simple | 4 | 00:01:00 | $7.65 | 2 | 1 |
| video_moderation | Simple | 3 | 00:00:30 | $3.6 | 1 | 0 |
@culerity
Scenario: list workers
Given a simple task exists with account: the account
Given a turk hit exists with task: the simple task
Given a turk assignment exists with hit: the turk hit, AssignmentStatus: "Approved"
When I am on the console workers page
Then I should see the "workers" table:
| WorkerID | Show |
| A26KYPW8H33TR9 | Show |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment