Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Added Playwright test for redirecting circ bib requests to Vega [SCC-5292](https://newyorkpubliclibrary.atlassian.net/browse/SCC-5292)
- Added author/contributor mode to browse landing [SCC-4966](https://newyorkpubliclibrary.atlassian.net/browse/SCC-4966)
- Added author/contributor models and table [SCC-4969](https://newyorkpubliclibrary.atlassian.net/browse/SCC-4969)
- Added author/contributor index and search results pages, with role handling [SCC-4967](https://newyorkpubliclibrary.atlassian.net/browse/SCC-4967)
Expand Down
15 changes: 15 additions & 0 deletions playwright/tests/redirects.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,18 @@ test("SHEP link with unknown uuid/path redirects to browse", async ({
await page.goto(`${BASE_URL}/subject_headings/something-something`)
await expect(page).toHaveURL(`${BASE_URL}/browse`)
})

test.describe("circ bib redirects", () => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a describe block around the other tests ("middleware" ?) and rename this one more accurately ("bib request redirects"?)

test("RC sends circ bib requests to Vega", async ({ request }) => {
const response = await request.get(`${BASE_URL}/bib/b17782484`, {
maxRedirects: 0,
})

expect(response.status()).toEqual(307)

const location = response.headers()["location"]
expect(location).toBe(
"https://borrow.nypl.org/search/card?recordId=17782484"
)
})
})
Loading