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.
- Loading branch information
Showing
11 changed files
with
83 additions
and
74 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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
Feature: Admin Data Tables functionality | ||
|
||
As an admin | ||
So that I can see how many people are teaching BJC | ||
I can use interactive datatables | ||
|
||
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 | primary_email | school | snap | application_status | | ||
| Bobby | John | false | testteacher@berkeley.edu | 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" | ||
|
||
Scenario: Filter all teacher info as an admin | ||
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 | primary_email | school | application_status | | ||
| Victor | Validateme | false | testteacher1@berkeley.edu | UC Berkeley | Validated | | ||
| Danny | Denyme | false | testteacher2@berkeley.edu | UC Berkeley | Denied | | ||
| Peter | Pendme | false | testteacher3@berkeley.edu | UC Berkeley | Not Reviewed | | ||
Given I am on the BJC home page | ||
Given 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 check "Not Reviewed" | ||
And I uncheck "Validated" | ||
Then I should see "Peter" | ||
Then I should not see "Victor" | ||
Then I should not see "Danny" | ||
And I check "Validated" | ||
Then I should see "Peter" | ||
Then I should see "Victor" | ||
Then I should not see "Danny" |
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
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 |
---|---|---|
|
@@ -4560,6 +4560,11 @@ minipass@^3.0.0, minipass@^3.1.1: | |
dependencies: | ||
yallist "^4.0.0" | ||
|
||
minipass@^5.0.0: | ||
version "5.0.0" | ||
resolved "https://registry.yarnpkg.com/minipass/-/minipass-5.0.0.tgz#3e9788ffb90b694a5d0ec94479a45b5d8738133d" | ||
integrity sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ== | ||
|
||
minizlib@^2.1.1: | ||
version "2.1.2" | ||
resolved "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz" | ||
|
@@ -6765,13 +6770,13 @@ tapable@^1.0.0, tapable@^1.1.3: | |
integrity sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA== | ||
|
||
tar@^6.0.2: | ||
version "6.1.11" | ||
resolved "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz" | ||
integrity sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA== | ||
version "6.2.1" | ||
resolved "https://registry.yarnpkg.com/tar/-/tar-6.2.1.tgz#717549c541bc3c2af15751bea94b1dd068d4b03a" | ||
integrity sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A== | ||
dependencies: | ||
chownr "^2.0.0" | ||
fs-minipass "^2.0.0" | ||
minipass "^3.0.0" | ||
minipass "^5.0.0" | ||
minizlib "^2.1.1" | ||
mkdirp "^1.0.3" | ||
yallist "^4.0.0" | ||
|
@@ -6902,10 +6907,10 @@ [email protected]: | |
resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" | ||
integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== | ||
|
||
trix@^1.2.0: | ||
version "1.3.1" | ||
resolved "https://registry.npmjs.org/trix/-/trix-1.3.1.tgz" | ||
integrity sha512-BbH6mb6gk+AV4f2as38mP6Ucc1LE3OD6XxkZnAgPIduWXYtvg2mI3cZhIZSLqmMh9OITEpOBCCk88IVmyjU7bA== | ||
trix@^2.1.1: | ||
version "2.1.1" | ||
resolved "https://registry.yarnpkg.com/trix/-/trix-2.1.1.tgz#688f1213601316cf8b92c5e625d2f562c118c780" | ||
integrity sha512-IljOMGOlRUPg1i5Pk/+x/Ia65ZY7Gw5JxxKCh/4caxG5ZaKuFJCKdn1+TF0efUYfdg+bqWenB/mAYCHjZu0zpQ== | ||
|
||
ts-pnp@^1.1.6: | ||
version "1.2.0" | ||
|