forked from beautyjoy/BJC-Teacher-Tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OK, I think the cucumber specs are good now...
- Loading branch information
1 parent
e977d68
commit 34208a6
Showing
1 changed file
with
7 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,41 +6,21 @@ Feature: Admin Data Tables functionality | |
|
||
Background: Has an Admin in DB | ||
Given the following teachers exist: | ||
| first_name | last_name | admin | email | | ||
| Admin | User | true | testadminuser@berkeley.edu | | ||
|
||
# Scenario: Updating application status persists changes in database | ||
# Given the following schools exist: | ||
# | name | country | city | state | website | grade_level | school_type | | ||
# | UC Berkeley | US | Berkeley | CA | https://www.berkeley.edu | university | public | | ||
# Given the following teachers exist: | ||
# | first_name | last_name | admin | email | school | snap | application_status | | ||
# | Bobby | John | false | [email protected] | UC Berkeley | bobby | denied | | ||
# Given I am on the BJC home page | ||
# And I have an admin email | ||
# And I follow "Log In" | ||
# Then I can log in with Google | ||
# When I go to the teachers page | ||
# And I go to the edit page for Bobby John | ||
# And I set my application status as "Validated" | ||
# And I press "Update" | ||
# Then I see a confirmation "Saved" | ||
# When I go to the teachers page | ||
# And I check "Validated" | ||
# Then I should see "Bobby John" | ||
| first_name | last_name | admin | primary_email | | ||
| Admin | User | true | testadminuser@berkeley.edu | | ||
|
||
Scenario: Updating application status persists changes in database | ||
Given the following schools exist: | ||
| name | country | city | state | website | grade_level | school_type | | ||
| UC Berkeley | US | Berkeley | CA | https://www.berkeley.edu | university | public | | ||
| name | country | city | state | website | grade_level | school_type | | ||
| UC Berkeley | US | Berkeley | CA | https://www.berkeley.edu | university | public | | ||
Given the following teachers exist: | ||
| first_name | last_name | admin | primary_email | school | snap | application_status | | ||
| Bobby | John | false | testteacher@berkeley.edu | UC Berkeley | bobby | denied | | ||
| first_name | last_name | admin | primary_email | school | snap | application_status | | ||
| Bobby | John | false | testteacher@berkeley.edu | UC Berkeley | bobby | not_reviewed | | ||
Given I am on the BJC home page | ||
And I have an admin email | ||
And I follow "Log In" | ||
Then I can log in with Google | ||
When I go to the teachers page | ||
# When I go to the teachers page | ||
And I go to the edit page for Bobby John | ||
And I set my application status as "Validated" | ||
And I press "Update" | ||
|