@thepalaceproject/circulation-admin 1.27.0-post.2 → 1.27.0-post.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -151,5 +151,5 @@
151
151
  "*.{js,jsx,ts,tsx,css,md}": "prettier --write",
152
152
  "*.{js,css,md}": "prettier --write"
153
153
  },
154
- "version": "1.27.0-post.2"
154
+ "version": "1.27.0-post.3"
155
155
  }
@@ -22,11 +22,10 @@ describe("AdvancedSearchBuilder", () => {
22
22
  />
23
23
  );
24
24
 
25
- const publicationDateRadio = screen.getByRole("radio", {
26
- name: "publication date",
27
- });
28
-
29
- await user.click(publicationDateRadio);
25
+ await userEvent.selectOptions(
26
+ screen.getByRole("combobox", { name: "filter field key" }),
27
+ screen.getByRole("option", { name: "Publication Date" })
28
+ );
30
29
 
31
30
  const filterValueField = screen.getByRole("textbox", {
32
31
  name: "filter value",
@@ -51,7 +51,7 @@ describe("CustomLists", () => {
51
51
  const items = screen.getAllByRole("treeitem");
52
52
 
53
53
  expect(items).toHaveLength(1);
54
- expect(items[0]).toHaveTextContent(/genre = horror/);
54
+ expect(items[0]).toHaveTextContent(/Genre = horror/);
55
55
 
56
56
  await user.click(screen.getByRole("textbox", { name: "filter value" }));
57
57
  await user.keyboard("science fiction{enter}");
@@ -91,7 +91,7 @@ describe("CustomLists", () => {
91
91
  let items = screen.getAllByRole("treeitem");
92
92
 
93
93
  expect(items).toHaveLength(1);
94
- expect(items[0]).toHaveTextContent(/genre = horror/);
94
+ expect(items[0]).toHaveTextContent(/Genre = horror/);
95
95
 
96
96
  await user.click(screen.getByRole("textbox", { name: "filter value" }));
97
97
  await user.keyboard("science fiction{enter}");
@@ -181,7 +181,10 @@ describe("CustomLists", () => {
181
181
  contextProviderProps
182
182
  );
183
183
 
184
- await user.click(screen.getByRole("radio", { name: "language" }));
184
+ await userEvent.selectOptions(
185
+ screen.getByRole("combobox", { name: "filter field key" }),
186
+ screen.getByRole("option", { name: "Language" })
187
+ );
185
188
  await user.click(screen.getByRole("textbox", { name: "filter value" }));
186
189
  await user.keyboard("french{enter}");
187
190
 
package/tsconfig.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "module": "commonjs",
5
5
  "target": "es5",
6
6
  "outDir": "lib",
7
- "lib": ["es2019", "dom"],
7
+ "lib": ["es2023.array","es2019", "dom"],
8
8
  "rootDir": ".",
9
9
  // Mocha and jest are both used in this project. Certain globals are declared by both,
10
10
  // such as describe, it, and test. Setting skipLibCheck to true prevents typescript from