Skip to content

Use mock apollo to test commit section mutation

What does this MR do and why?

Instead of using a mocked function that we pass to the mocks property of VTU, we properly pass the fake apollo provider util to the tests with handlers.

This also made me discover an issue where we wouldn't update the etag value properly after a commit. This is being fix in this MR + added a test to cover this usecase.

Screenshots or screen recordings

No visual changes.

How to set up and validate locally

Tests only.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #300689 (closed)

Edited by Frédéric Caplette

Merge request reports