Commit 8c618021 authored by Martin Wortschack's avatar Martin Wortschack

Merge branch...

Merge branch '299978-devops-adoption-fe-restore-ability-to-add-sub-groups-to-the-table' into 'master'

DevOps Adoption[FE] Restore ability to add sub groups to the table

See merge request gitlab-org/gitlab!52772
parents 5c614b0d 520f6eaf
......@@ -13,7 +13,6 @@ export const resolvers = {
const params = {
per_page: Api.DEFAULT_PER_PAGE,
search,
top_level_only: true,
};
if (nextPage) {
params.page = nextPage;
......
......@@ -23,11 +23,11 @@ describe('DevOps GraphQL resolvers', () => {
});
describe('groups query', () => {
it('only fetches top level groups', async () => {
it('fetches all groups', async () => {
mockAdapter.onGet(fetchGroupsUrl).reply(httpStatus.OK, groupData, pageData);
await mockClient.query({ query: getGroupsQuery });
expect(mockAdapter.history.get[0].params).toEqual(
expect(mockAdapter.history.get[0].params).not.toEqual(
expect.objectContaining({ top_level_only: true }),
);
});
......
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