Skip to content

Commit

Permalink
OK, I think the cucumber specs are good now...
Browse files Browse the repository at this point in the history
  • Loading branch information
cycomachead committed May 10, 2024
1 parent e977d68 commit 34208a6
Showing 1 changed file with 7 additions and 27 deletions.
34 changes: 7 additions & 27 deletions features/data_tables.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 34208a6

Please sign in to comment.