Skip to content

Commit

Permalink
remove UI
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabib committed Nov 25, 2024
1 parent 7439ba5 commit 7b88b66
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
4 changes: 0 additions & 4 deletions frontend/src/lib/components/header/AccountMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@

<LinkToCanisters on:nnsLink={closeMenu} />

{#if $ENABLE_EXPORT_NEURONS_REPORT}
<ExportNeuronsButton on:nnsExportNeuronsCSVTriggered={toggle} />
{/if}

<Logout on:nnsLogoutTriggered={toggle} />
</div>
</Popover>
Expand Down
22 changes: 0 additions & 22 deletions frontend/src/tests/lib/components/header/AccountMenu.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import AccountMenu from "$lib/components/header/AccountMenu.svelte";
import { overrideFeatureFlagsStore } from "$lib/stores/feature-flags.store";
import {
mockLinkClickEvent,
resetNavigationCallbacks,
Expand Down Expand Up @@ -125,26 +124,5 @@ describe("AccountMenu", () => {

expect(await accountMenuPo.getAccountDetailsPo().isPresent()).toBe(false);
});

describe("export feature flag", () => {
it("should not show the Export Neurons Report button if feature flag is off(by default)", async () => {
const renderResult = render(AccountMenu);

await show(renderResult);

expect(renderResult.queryByTestId("export-neurons-button")).toBeNull();
});

it("should show the Export Neurons Report button if feature flag is on", async () => {
overrideFeatureFlagsStore.setFlag("ENABLE_EXPORT_NEURONS_REPORT", true);
const renderResult = render(AccountMenu);

await show(renderResult);

expect(
renderResult.getByTestId("export-neurons-button")
).not.toBeNull();
});
});
});
});

0 comments on commit 7b88b66

Please sign in to comment.