mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 15:42:24 +00:00
Merge remote-tracking branch 'origin/main' into release/v1.47.5
This commit is contained in:
commit
6994cb5ce8
6 files changed
+63
-17
No files matched your search
@@ -164,12 +164,12 @@ describe("useUrlFilterSync with FilterBar", () => {
|
||||
|
||||
it("writes a facet picked from the open menu as a new history entry", async () => {
|
||||
const { pill, history, pick } = await mount();
|
||||
const entries = window.history.length;
|
||||
await pick("Type", "Pulse");
|
||||
await expectSearch("?type=PULSE");
|
||||
// A push and no replace is the new entry. `history.length` is no proof:
|
||||
// the browser caps it, and other files in this frame push entries too.
|
||||
expect(history.pushes()).toEqual(["?type=PULSE"]);
|
||||
expect(history.replaces()).toEqual([]);
|
||||
expect(window.history.length).toBe(entries + 1);
|
||||
await expect.element(pill("Type: Pulse")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user