Add release management components and update routing logic. Introduce keyboard shortcuts, enhance release data grid, and improve asset handling in Nginx configuration.
This commit is contained in:
@@ -254,9 +254,9 @@ describe("SelfServeTryModal", () => {
|
||||
await flushPromises();
|
||||
|
||||
const image = wrapper.get('[data-testid="self-serve-try-dynamic-image"]');
|
||||
const imageUrl = new URL(image.attributes("src"));
|
||||
const imageUrl = new URL(image.attributes("src"), "http://localhost");
|
||||
|
||||
expect(imageUrl.pathname).toBe("/department/lanes/dynamic-image");
|
||||
expect(imageUrl.pathname).toMatch(/\/department\/lanes\/dynamic-image$/);
|
||||
expect(imageUrl.searchParams.get("department")).toBe("9");
|
||||
expect(imageUrl.searchParams.get("lane")).toBe("3");
|
||||
expect(imageUrl.searchParams.get("current_step")).toBe("0");
|
||||
@@ -303,7 +303,7 @@ describe("SelfServeTryModal", () => {
|
||||
await flushPromises();
|
||||
|
||||
const image = wrapper.get('[data-testid="self-serve-try-dynamic-image"]');
|
||||
const imageUrl = new URL(image.attributes("src"));
|
||||
const imageUrl = new URL(image.attributes("src"), "http://localhost");
|
||||
expect(imageUrl.searchParams.get("vehicle_type")).toBe("3");
|
||||
expect(JSON.parse(imageUrl.searchParams.get("buttons"))).toEqual([1]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user