- 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 groups, go to
/reports
. - Click
Add
in the group column of one of the reports [modal appears suggesting you create a new group] - Click
create a new group
[create group modal appears] - Add a title for the group
- Begin typing
mac
in the location field [locations starting withmac
should be suggested] - Select a location and save the group [modal closes]
- Select 3 reports with the checkboxes and click
Add to group
[modal opens with the previously created group] - Add the reports to that group [group column updates]
- Go to
/groups
[inTitle
column group shows correct number of reports] - View the group you have just created [group shows the 3 reports that were added]
- Click the
Edit
button [edit modal appears] - Add one tag and save the group [group is updated]
- Flag one report in the group view page [the report is flagged]
- Click
Create Group
[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 group [group 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 group, 2 users, and 21 reports.
- With at least 11 reports and at least 1 group, go to
reports
and clickGrab Batch
[goes to /reports/batch] - Click
Add
in the group column of one report [modal appears showing the groups already created] - Click an group [modal closes, text
Add
is updated to the name of the group] - 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]