Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/components/overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import type { StacCatalog, StacCollection, StacItem } from "stac-ts";
import Breadcrumbs from "./breadcrumbs";
import { Examples } from "./examples";
import Panel from "./panel";
import { ColorModeButton } from "./ui/color-mode";
import type { BBox2D } from "../types/map";
import type { DatetimeBounds, StacValue } from "../types/stac";

Expand Down Expand Up @@ -103,6 +104,7 @@ export default function Overlay({
Examples
</Button>
</Examples>
<ColorModeButton />
</HStack>
</GridItem>
</SimpleGrid>
Expand Down
7 changes: 7 additions & 0 deletions tests/app.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ describe("app", () => {
.toBeVisible();
});

test("has a color mode button", async () => {
const app = renderApp();
await expect
.element(app.getByRole("button", { name: "Toggle color mode" }))
.toBeVisible();
});

describe.for(EXAMPLES)("example $title", ({ title }) => {
test("updates title", async ({ expect }) => {
const app = renderApp();
Expand Down