Add audit issue navigation and task-button normalization to Self-Serve Studio. Implement node ID resolution, audit visualization logic, and reusable task button helpers. Extend E2E and unit tests.
This commit is contained in:
@@ -191,7 +191,7 @@ describe("SelfServeTryModal", () => {
|
||||
mocks.activeTasks.value = [
|
||||
{
|
||||
id: 1,
|
||||
buttons: [0, 2, 2, -1, 99],
|
||||
buttons: ["reset", 0, 2, 2, "start", -1, 99],
|
||||
dynamic_images_vehicle_type: 5,
|
||||
},
|
||||
];
|
||||
@@ -221,7 +221,7 @@ describe("SelfServeTryModal", () => {
|
||||
expect(imageUrl.searchParams.get("current_step")).toBe("0");
|
||||
expect(imageUrl.searchParams.get("vehicle_type")).toBe("3");
|
||||
expect(imageUrl.searchParams.get("thumb_position")).toBe("5");
|
||||
expect(JSON.parse(imageUrl.searchParams.get("buttons"))).toEqual([0, 2]);
|
||||
expect(JSON.parse(imageUrl.searchParams.get("buttons"))).toEqual(["reset", 0, 2, "start"]);
|
||||
});
|
||||
|
||||
it("does not render dynamic image preview without dynamic-image context", async () => {
|
||||
|
||||
Reference in New Issue
Block a user