Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eperedo committed Sep 24, 2024
1 parent 7f229c7 commit c411504
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
6 changes: 0 additions & 6 deletions src/webapp/pages/app/__tests__/App.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ import { getTestContext } from "$/utils/tests";
import { Provider } from "@dhis2/app-runtime";

describe("App", () => {
it("renders the feedback component", async () => {
const view = getView();

expect(await view.findByText("Send feedback")).toBeInTheDocument();
});

it("navigates to page", async () => {
const view = getView();

Expand Down
33 changes: 0 additions & 33 deletions src/webapp/pages/app/__tests__/__snapshots__/App.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,6 @@ exports[`App > navigates to page 1`] = `
<header
class="jsx-2837859311 sc-dhKdPU klBWsW"
/>
<div
class="Component-root-4 Component-root-5"
>
<div
style="padding: 2px 10px 2px 10px; font-size: 12px; cursor: pointer; color: rgb(255, 255, 255); background-color: rgb(255, 152, 0); font-family: \\"Roboto\\", \\"Helvetica\\", \\"Arial\\", sans-serif; font-weight: 500; line-height: 1.75; letter-spacing: 0.02857em; text-transform: uppercase;"
>
Send feedback
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall"
focusable="false"
style="padding-top: 2px; margin-left: 3px;"
viewBox="0 0 24 24"
>
<path
d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"
/>
</svg>
</div>
</div>
<div
class="content"
id="app"
Expand Down Expand Up @@ -64,18 +44,5 @@ exports[`App > navigates to page 1`] = `
Hello John
</h2>
</div>
<div>
<div
style="bottom: -3px; right: 100px; position: fixed; z-index: 10002;"
>
<button
style="text-shadow: none; background-color: rgb(255, 152, 0); color: white; width: 65px; height: 38.5px; cursor: pointer; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 2px; background-clip: padding-box; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);"
>
<i
class="fa fa-share icon-xlarge"
/>
</button>
</div>
</div>
</DocumentFragment>
`;

0 comments on commit c411504

Please sign in to comment.