- Use default
secrets.json
, but setadminParty
to false - Run Aggie with
npm start
- Do all of the tests below after running
angular.element(document.querySelector('html')).injector().get('$translate').use('debug').then((x) => { console.log(x)})
[all constant string should appear in __ALL_CAPS
]
- Do all of the below with
api.log_user_activity: true
inconfig/secrets.json
.
- Make sure
adminParty
is false - Drop aggie database and run
npm install
- Log in as
admin
with default password [goes to/reset_admin_password
] - Reset admin password [goes to
/login
] - Log in with new password
- Add Google Places API and refresh the page
- Add API tokens and turn fetching on
- Create Crowdtangle source
- With at least a few reports and no incidents, go to
/reports
. - Click
Add
in the incident column of one of the reports [modal appears suggesting you create a new incident] - Click
create a new incident
[create incident modal appears] - Add a title for the incident
- Begin typing
mac
in the location field [locations starting withmac
should be suggested] - Select a location and save the incident [modal closes]
- Select 3 reports with the checkboxes and click
Add to incident
[modal opens with the previously created incident] - Add the reports to that incident [incident column updates]
- Go to
/incidents
[inTitle
column incident shows correct number of reports] - View the incident you have just created [incident shows the 3 reports that were added]
- Click the
Edit
button [edit modal appears] - Add one tag and save the incident [incident is updated]
- Flag one report in the incident view page [the report is flagged]
- Click
Create Incident
[modal appears] - Begin typing
mac
in the location field [locations starting withmac
should be suggested] - Pick a a location, enter a title and save the incident [incident is saved successfully]
- Go to Settings > Configuration [goes to
/settings
] - Set app email address [saved successfully]
- Set up email transport settings [saved successfully]
- Go to Settings > Users [list of users is shown]
- Click Create User [modal appears]
- Select name, a valid email, and
Viewer
[possible roles are listed correctly] - Submit [email is sent]
- Logout
- Click link in email [goes to
/choose_password/...
] - Select new password and login
- Click Settings [Users and not Settings appears in dropdown]
- Go to Settings > Users [only this user appears, cannot create new users]
Prerequisites: at least 1 incident, 2 users, and 21 reports.
- With at least 11 reports and at least 1 incident, go to
reports
and clickGrab Batch
[goes to /reports/batch] - Click
Add
in the incident column of one report [modal appears showing the incidents already created] - Click an incident [modal closes, text
Add
is updated to the name of the incident] - Click
Mark All and Done
[goes back to /reports and the reports from the batch are marked as read] - Navigate to
/reports/batch
[the previous batch is displayed, and the reports are marked as read] - Navigate to
/reports
and clickGrab Batch
again [goes to/reports/batch
and populates with some reports] - Log in as a different user in a different tab/window
- Navigate to
/reports
as the second user and clickGrab Batch
. [reports are populated, and none of them are reports the other user has in their batch]
See experiment.md
Prerequisites:
- Set secrets.json variables:
"experimental": true
, and"experimentFile": "test/end_to_end/fixtures/experiment_reports.json"
- Set fetching off
- Stop Aggie Start "experiment"
- Start Aggie
- Set fetching on
- Navigate to
/reports
[50 reports have appeared on the page, the last one with a bit of delay]