These tests should check that requests made with our existing POST/PUT/DELETE are associated with the right user.
Description
Description
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | None | T313895 🥔️ Create e2e tests for authenticated edits | |||
| Resolved | Jakob_WMDE | T313928 🥔️ Extract auth tests into a file | |||
| Resolved | Jakob_WMDE | T314032 🥔️ Create a RequestBuilder.withUser( user ) method | |||
| Resolved | Jakob_WMDE | T314034 🥔️ Add missing AddItemStatementTest for authenticated edit |
Event Timeline
Comment Actions
Notes from task breakdown:
Task 1: create RequestBuilder.withUser( user ) - @Ollie.Shotton_WMDE creates task
- create a RequestBuilder.withUser( user ) method where user is something like the return value of await action.mindy()
- use it in the 'has an X-Authenticated-User header with the logged in user' test cases
Task 2: add missing AddItemStatementTest for authenticated edit (user shows up in edit metadata) - @Silvan_WMDE creates task
- create the missing test case in AddItemStatementTest.js
- we want to avoid creating multiple user per test suite to save time
Task 3: extract auth tests into separate file - @Jakob_WMDE creates task
- extract all auth tests into a separate test file instead of repeating them for every route test suite
- similar to conditional request tests
Comment Actions
@Jakob_WMDE: Assuming this task is resolved. Thus setting resolved task status. Please reopen and add an active project tag if that is not the case. Thanks.