diff --git a/app/javascript/components/RequestCart.vue b/app/javascript/components/RequestCart.vue
index 7b340807..5abfe39d 100644
--- a/app/javascript/components/RequestCart.vue
+++ b/app/javascript/components/RequestCart.vue
@@ -87,9 +87,9 @@
- View this item at the {{ item.location.label
- }}{{ item.location.label }}
+ This item can be viewed in person at {{ item.location.label.replace("Manuscript ", "")
+ }}{{ item.location.label.replace("Manuscript ", "") }}.
|
diff --git a/app/javascript/test/requestCart.spec.js b/app/javascript/test/requestCart.spec.js
index 5e77826f..a93242c5 100644
--- a/app/javascript/test/requestCart.spec.js
+++ b/app/javascript/test/requestCart.spec.js
@@ -20,7 +20,7 @@ describe('RequestCart.vue', () => {
},
location: {
notes: "It's far away",
- label: 'Firestone Library',
+ label: 'Mudd Manuscript Library',
url: 'https://example.com'
}
}],
@@ -48,7 +48,7 @@ describe('RequestCart.vue', () => {
const notes = container.querySelector('.request__location-notes')
expect(notes.textContent).toMatch("It's far away")
const locationInfo = container.querySelector('.request__location')
- expect(locationInfo.textContent).toMatch('View this item at the Firestone Library')
+ expect(locationInfo.textContent).toMatch('This item can be viewed in person at Mudd Library.')
expect(locationInfo.querySelector('a').attributes.href.value).toBe('https://example.com')
})
test('Rendering locations with no url', async () => {
@@ -65,7 +65,7 @@ describe('RequestCart.vue', () => {
},
location: {
notes: "It's far away",
- label: 'Firestone Library',
+ label: 'Mudd Manuscript Library',
url: null
}
}],
@@ -92,7 +92,7 @@ describe('RequestCart.vue', () => {
const notes = container.querySelector('.request__location-notes')
expect(notes.textContent).toMatch("It's far away")
const locationInfo = container.querySelector('.request__location')
- expect(locationInfo.textContent).toMatch('View this item at the Firestone Library')
+ expect(locationInfo.textContent).toMatch('This item can be viewed in person at Mudd Library.')
expect(locationInfo.querySelector('a')).toBe(null)
})
test('Submitting cart', async () => {
diff --git a/spec/features/catalog_view_spec.rb b/spec/features/catalog_view_spec.rb
index 578d1f4e..a3d9a1c5 100644
--- a/spec/features/catalog_view_spec.rb
+++ b/spec/features/catalog_view_spec.rb
@@ -69,7 +69,7 @@
expect(page).to have_selector "td", text: /MC148_c00002/
expect(page).to have_selector "td", text: /Box 1/
expect(page).to have_selector "button[type='submit']", text: /Request 1 Item/
- expect(page).to have_selector ".request__location", text: /View this item at the/
+ expect(page).to have_selector ".request__location", text: /This item can be viewed in person/
# Click the remove item button
find("#item-MC148_c00002 > td > button").click