Commit 037ce621 authored by Tom Quirk's avatar Tom Quirk

Initialize Integrations table for admins on FOSS

This fixes a bug where the integrations
table was not available for FOSS admins.

Also, remove DOMContentLoaded callback

Changelog: fixed
parent 8147ef2e
import initIntegrationsList from '~/integrations/index';
import PersistentUserCallout from '~/persistent_user_callout'; import PersistentUserCallout from '~/persistent_user_callout';
document.addEventListener('DOMContentLoaded', () => { const callout = document.querySelector('.js-admin-integrations-moved');
const callout = document.querySelector('.js-admin-integrations-moved');
PersistentUserCallout.factory(callout); PersistentUserCallout.factory(callout);
});
initIntegrationsList();
---
title: Fix Instance-level Project Integration Management page for GitLab FOSS
merge_request: 60354
author:
type: fixed
...@@ -305,6 +305,10 @@ RSpec.describe 'Admin updates settings' do ...@@ -305,6 +305,10 @@ RSpec.describe 'Admin updates settings' do
expect(page).not_to have_content('Some settings have moved') expect(page).not_to have_content('Some settings have moved')
end end
it 'shows integrations table' do
expect(page).to have_selector '[data-testid="inactive-integrations-table"]'
end
end end
context 'CI/CD page' do context 'CI/CD page' do
......
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