Skip to content

Commit 30d44b6

Browse files
committed
Implement Navigation Graph Editor
1 parent 1535ea3 commit 30d44b6

22 files changed

+1479
-134
lines changed

src/App.browser-smoke.test.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ describe("App browser smoke", () => {
847847
expect(screen.getByTestId("mock-map-feature-ids")).not.toHaveTextContent("shape-first");
848848
expect(screen.getByTestId("mock-map-overlay-floor")).toHaveTextContent("floor-1");
849849

850-
fireEvent.click(screen.getByRole("button", { name: /opening/i }));
850+
fireEvent.click(screen.getByRole("button", { name: /pedestrian path/i }));
851851
expect(screen.getByTestId("mock-map-mode")).toHaveTextContent("line");
852852

853853
fireEvent.click(screen.getByRole("button", { name: "First Floor" }));
@@ -968,10 +968,10 @@ describe("App browser smoke", () => {
968968
render(<App />);
969969

970970
await waitFor(() => {
971-
expect(screen.getByRole("button", { name: /opening/i })).toBeInTheDocument();
971+
expect(screen.getByRole("button", { name: /pedestrian path/i })).toBeInTheDocument();
972972
});
973973

974-
fireEvent.click(screen.getByRole("button", { name: /opening/i }));
974+
fireEvent.click(screen.getByRole("button", { name: /pedestrian path/i }));
975975
fireEvent.click(screen.getByTestId("mock-map-select-feature"));
976976

977977
await waitFor(() => {
@@ -1318,10 +1318,10 @@ describe("App browser smoke", () => {
13181318
await addVenueAndBuilding();
13191319

13201320
await waitFor(() => {
1321-
expect(screen.getByRole("button", { name: /opening/i })).toBeInTheDocument();
1321+
expect(screen.getByRole("button", { name: /pedestrian path/i })).toBeInTheDocument();
13221322
});
13231323

1324-
fireEvent.click(screen.getByRole("button", { name: /opening/i }));
1324+
fireEvent.click(screen.getByRole("button", { name: /pedestrian path/i }));
13251325

13261326
await waitFor(() => {
13271327
expect(screen.getByTestId("mock-map-mode")).toHaveTextContent("line");
@@ -1352,7 +1352,7 @@ describe("App browser smoke", () => {
13521352
[5.201, 52.201],
13531353
[5.202, 52.202],
13541354
]);
1355-
expect(latestSnapshot.features[0]?.properties.kind).toBe("opening");
1355+
expect(latestSnapshot.features[0]?.properties.kind).toBe("formation:navigation-edge");
13561356
expect(latestSnapshot.features[0]?.properties.name).toEqual({ en: "Path 1" });
13571357
});
13581358
});
@@ -1366,10 +1366,10 @@ describe("App browser smoke", () => {
13661366
await addVenueAndBuilding();
13671367

13681368
await waitFor(() => {
1369-
expect(screen.getByRole("button", { name: /opening/i })).toBeInTheDocument();
1369+
expect(screen.getByRole("button", { name: /pedestrian path/i })).toBeInTheDocument();
13701370
});
13711371

1372-
fireEvent.click(screen.getByRole("button", { name: /opening/i }));
1372+
fireEvent.click(screen.getByRole("button", { name: /pedestrian path/i }));
13731373
fireEvent.click(screen.getByTestId("mock-map-create-forked-line-feature"));
13741374

13751375
await waitFor(() => {

0 commit comments

Comments
 (0)