@museumwnf/viewer-layout 3.64.0 → 3.65.1
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@museumwnf/viewer-layout",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.65.1",
|
|
4
4
|
"description": "Page structure for MWNF websites: PageShell composing seven optional, token-styled sections, the content components a page is made of, and the composed views a website names instead of writing a page.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
package/src/dxa/testing.js
CHANGED
|
@@ -256,6 +256,17 @@ export function describeGallerySmoke({ config, sharedTexts, ownTexts, manifest,
|
|
|
256
256
|
app.unmount()
|
|
257
257
|
}, 20000)
|
|
258
258
|
|
|
259
|
+
// Legacy's home drew three of the gallery's partners at random, whichever
|
|
260
|
+
// they were (dxa-api /partners/featured, inventory-app#2405).
|
|
261
|
+
it("draws up to three of the gallery's partners into the featured carousel", async () => {
|
|
262
|
+
const [partners] = await loadEntities(['partners'])
|
|
263
|
+
const { app, host } = await mountSite()
|
|
264
|
+
await vi.waitFor(() => expect(host.querySelector('.mwnf-featured-partners__name')).not.toBeNull(), WAIT)
|
|
265
|
+
// One bullet a partner, when there is more than one to turn through.
|
|
266
|
+
if (partners.length > 1) expect(host.querySelectorAll('.mwnf-featured-partners__bullet').length).toBe(Math.min(3, partners.length))
|
|
267
|
+
app.unmount()
|
|
268
|
+
}, 20000)
|
|
269
|
+
|
|
259
270
|
collectionTest(mountSite, picks.collection, { gallery: true })
|
|
260
271
|
|
|
261
272
|
it("renders the collection entrance as legacy's", async () => {
|
|
@@ -493,14 +504,18 @@ export function describeGallerySmoke({ config, sharedTexts, ownTexts, manifest,
|
|
|
493
504
|
app.unmount()
|
|
494
505
|
}, 60000)
|
|
495
506
|
|
|
496
|
-
|
|
497
|
-
|
|
507
|
+
// Legacy's PartnerProfile (inventory-app#2423): "View Objects" beside the
|
|
508
|
+
// tabs, Google's map under "Museum on Google Maps", no source credit.
|
|
509
|
+
it('renders a partner profile as legacy', async () => {
|
|
510
|
+
const { app, host } = await mountSite(`#/partner/${partner.id}?lang=en`)
|
|
498
511
|
// The name and the city arrive with the translations the view loads.
|
|
499
512
|
await vi.waitFor(() => expect(host.textContent).toContain(partner.name), WAIT)
|
|
500
513
|
await vi.waitFor(() => expect(host.textContent).toContain(partner.city), WAIT)
|
|
514
|
+
expect(host.querySelector('.mwnf-dxa-gallery-profile')).not.toBeNull()
|
|
501
515
|
expect(host.querySelector('.mwnf-partner-map')).not.toBeNull()
|
|
502
|
-
|
|
503
|
-
expect(host.querySelector('.mwnf-
|
|
516
|
+
expect(host.querySelector('.mwnf-dxa-profile-map-label').textContent).toBe('Museum on Google Maps')
|
|
517
|
+
expect(host.querySelector('.mwnf-partner-panel__actions').textContent).toContain('View Objects')
|
|
518
|
+
expect(host.querySelector('.mwnf-source-credit')).toBeNull()
|
|
504
519
|
app.unmount()
|
|
505
520
|
}, 60000)
|
|
506
521
|
|