Commit 7195dbc1 authored by Simon Knox's avatar Simon Knox

Merge branch '357461-fix-read-cadence-query-variable' into 'master'

Fix iteration cadence read query variable

See merge request gitlab-org/gitlab!85355
parents fb4286fe 9d007575
...@@ -168,7 +168,7 @@ export default { ...@@ -168,7 +168,7 @@ export default {
variables() { variables() {
return { return {
fullPath: this.fullPath, fullPath: this.fullPath,
cadenceId: convertToGraphQLId(TYPE_ITERATIONS_CADENCE, this.cadenceId), id: convertToGraphQLId(TYPE_ITERATIONS_CADENCE, this.cadenceId),
}; };
}, },
result({ data: { group, errors }, error }) { result({ data: { group, errors }, error }) {
......
...@@ -244,6 +244,13 @@ describe('Iteration cadence form', () => { ...@@ -244,6 +244,13 @@ describe('Iteration cadence form', () => {
expect(wrapper.text()).toContain(wrapper.vm.i18n.edit.save); expect(wrapper.text()).toContain(wrapper.vm.i18n.edit.save);
}); });
it('triggers read query with correct variables', () => {
expect(resolverMock).toHaveBeenCalledWith({
fullPath: groupPath,
id: automaticIterationCadence.id,
});
});
it('disables fields while loading', async () => { it('disables fields while loading', async () => {
createComponent({ query, resolverMock }); createComponent({ query, resolverMock });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment