Page MenuHomePhabricator

Unit test form component interaction with API
Closed, ResolvedPublic


Following up from T345257: Wire the reporting form to the API endpoint, this is a task to write Jest tests for the form's POST request to the report incident API.

Acceptance criteria:

  • There is at least one test relating to the restPayload object from Form.js

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Dreamy_Jazz subscribed.

Mostly done, but I can add one more test for this.

Change 964060 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/ReportIncident@master] Test that a not successful API response doesn't close the dialog

kostajh updated the task description. (Show Details)

Change 964060 merged by jenkins-bot:

[mediawiki/extensions/ReportIncident@master] Test that a unsuccessful API response keeps the the dialog open