Skip to content
Snippets Groups Projects
Commit 7195dbc1 authored by Simon Knox's avatar Simon Knox
Browse files

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
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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 }) {
Loading
Loading
Loading
Loading
@@ -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 });
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment