- Use default
secrets.json, but setadminPartyto 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: trueinconfig/secrets.json.
- Make sure
adminPartyis false - Drop aggie database and run
npm install - Log in as
adminwith 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
Addin 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
macin the location field [locations starting withmacshould 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[inTitlecolumn incident shows correct number of reports] - View the incident you have just created [incident shows the 3 reports that were added]
- Click the
Editbutton [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
macin the location field [locations starting withmacshould 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
reportsand clickGrab Batch[goes to /reports/batch] - Click
Addin the incident column of one report [modal appears showing the incidents already created] - Click an incident [modal closes, text
Addis 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
/reportsand clickGrab Batchagain [goes to/reports/batchand populates with some reports] - Log in as a different user in a different tab/window
- Navigate to
/reportsas 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]