@thepalaceproject/circulation-admin 1.45.0-post.3 → 1.45.0-post.7
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
|
@@ -364,4 +364,19 @@ describe("CustomListEditor", () => {
|
|
|
364
364
|
container.querySelector(".sharing-info button")
|
|
365
365
|
).not.toBeInTheDocument();
|
|
366
366
|
});
|
|
367
|
+
|
|
368
|
+
it("does not render a share button once the list is already shared, and shows the shared-state copy", () => {
|
|
369
|
+
const { container } = renderEditor({ isShared: true });
|
|
370
|
+
|
|
371
|
+
expect(
|
|
372
|
+
container.querySelector(".sharing-info button")
|
|
373
|
+
).not.toBeInTheDocument();
|
|
374
|
+
|
|
375
|
+
expect(
|
|
376
|
+
screen.getByText(
|
|
377
|
+
"This list has been shared with other libraries, and will automatically be made available to any libraries registered in this Collection Manager, including libraries registered in the future.",
|
|
378
|
+
{ exact: false }
|
|
379
|
+
)
|
|
380
|
+
).toBeInTheDocument();
|
|
381
|
+
});
|
|
367
382
|
});
|