Commit 9d007575 authored by Eulyeon Ko's avatar Eulyeon Ko

Fix iteration cadence read query variable

parent 43f1a6ef
......@@ -168,7 +168,7 @@ export default {
variables() {
return {
fullPath: this.fullPath,
cadenceId: convertToGraphQLId(TYPE_ITERATIONS_CADENCE, this.cadenceId),
id: convertToGraphQLId(TYPE_ITERATIONS_CADENCE, this.cadenceId),
};
},
result({ data: { group, errors }, error }) {
......
......@@ -244,6 +244,13 @@ describe('Iteration cadence form', () => {
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 () => {
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