fix(ui): stop the add-provider modal from shifting while it loads (#13179)

This commit is contained in:
Alejandro Bailo authored and GitHub committed 2026-10-27 20:53:00 +01:00
1 parent 75c9a6bf51
commit dcd3d5a0fb
22 files changed
+799 -151

No files matched your search

+24
View File
@@ -96,3 +96,27 @@ describe("getRuntimePublicConfig self-registration flag", () => {
expect(config.selfRegistrationEnabled).toBe(false);
});
});
describe("getRuntimePublicConfig Registry flag", () => {
afterEach(() => {
vi.unstubAllEnvs();
});
it('is enabled when UI_REGISTRY_ENABLED is "true"', async () => {
vi.stubEnv("UI_REGISTRY_ENABLED", "true");
const { getRuntimePublicConfig } = await importFresh();
const config = await getRuntimePublicConfig();
expect(config.registryEnabled).toBe(true);
});
it("is disabled when UI_REGISTRY_ENABLED is unset", async () => {
vi.stubEnv("UI_REGISTRY_ENABLED", undefined);
const { getRuntimePublicConfig } = await importFresh();
const config = await getRuntimePublicConfig();
expect(config.registryEnabled).toBe(false);
});
});