Skip to content

Create oncall schedule graphql fixture

What does this MR do and why?

Describe in detail what your merge request does and why.

This is the first part of replacing mock rotations stored as a json with GraphQL fixtures. This MR replaces the mock json in ee/spec/frontend/oncall_schedule/rotations/components/rotation_assignee_spec.js. It will be split as the others tests need to be rewritten or the data in the mock adjusted to fit the tests.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

  1. Build new fixture by running bin/rspec ee/spec/frontend/fixtures/oncall_schedule.rb in gitlab-development-kit/gitlab
  2. Run updated jest tests to ensure they pass yarn jest ee/spec/frontend/oncall_schedule/

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 #367838

Merge request reports

Loading