Skip to content

Commit

Permalink
fix: old unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sdisalvo-crd committed Apr 25, 2024
1 parent d5d98bb commit 71f58b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/ui/pages/Menu/components/Settings/Settings.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ import EN_TRANSLATIONS from "../../../../../locales/en/en.json";

describe("Settings page", () => {
test("Renders Settings page", () => {
const { getByTestId, getByText } = render(
const { getByText } = render(
<Provider store={store}>
<Settings />
</Provider>
);

expect(getByTestId("settings-page")).toBeInTheDocument();
expect(
getByText(EN_TRANSLATIONS.settings.sections.security.title)
).toBeInTheDocument();
Expand Down
5 changes: 4 additions & 1 deletion src/ui/pages/Menu/components/SubMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ const SubMenu = ({
}
customClass={`${showSubMenu ? "show" : "hide"}`}
>
<div className={`${title?.toLowerCase().replace(" ", "-")}-content`}>
<div
className={`${title?.toLowerCase().replace(" ", "-")}-content`}
data-testid={`${title?.toLowerCase().replace(" ", "-")}-content`}
>
{children}
</div>
</ScrollablePageLayout>
Expand Down

0 comments on commit 71f58b4

Please sign in to comment.