mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-11-08 12:24:45 +00:00
fix(ui): stop the add-provider modal from shifting while it loads (#13179)
This commit is contained in:
1 parent
75c9a6bf51
commit
dcd3d5a0fb
22 files changed
+799
-151
No files matched your search
@@ -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);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user