Skip to content

Commit

Permalink
Test for Collection displaying on Work page
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjarling committed Apr 5, 2024
1 parent 66f963f commit b6e0ab1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion playwright-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@
</body>
</html>
<script>
window.playwrightReportBase64 = "data:application/zip;base64,UEsDBBQAAAgIAItwhVhR2A/k6gQAANMjAAAZAAAAYmUwNDY4MmQwNzU5MzMzNGQyNGUuanNvbrVaW2+jOBT+K4iXpFLC2IBvkfZh2tlVK3VmpVW0K+1MHxxwErYER+BsU1X572tItCE0mYBrpEolYJ/znYs/n2N4c+dJKh5id+LOBAgx9WNAEAuCIIz9ULij6vk3vhJ6xIvMn71iLSJPFfqJEoX+P/n+Vl1dlDHmcBYgQRGhggI/8oMA83J6otJS6hf5kqWSxw7PYqdY8lw4ccJTuXBykcUiLxyepk4kMyUypeetc/mPiNQBU7TM5SrZrPSDVEZcJTJzJ28V6veI0yTTdwPKRm4k081KDw12Izfe5IeJPmFw5PIsk6q6U5r3pKHyxeFKblQkK8Viq8UqEZeIuFrqx+5fWpuz5guh0a7WMivx6jm5KDbpwVNNVYXiuZomlUQf+OEY6D80hWwCwglkHkPkb7cUofJXdwLKCWJ9cPrBf7diLrXP7qV8Lm28LpGVEo9AoA/PiZ0nW7XJxcSZ5fKlEHkb0Tg4FR2eBXwQOH1dC0+HNdNubCU8PBUesKPwpzKgG+3uCdzVr0dn7KkyaXtVpQ88ABr2EHJe5Tk1ZR600UHBqQ7QyapSi7eQSg4/JUqsik/RjHLIOBkHsYjGIZkHYwoiMIY+JT4XGM7p/KYVLthIkwChE2itlxsDx+UG8e68IZU0mXsLoW5f/5CpGA5mG6VkNhg5b06mF/vEGXxJilVSFANnd+NFaRI9XzUEemFATg1hKDS0Ax7tQORDdryjvA4m+V7A/FOTqGlk/KNFmF6waE90npK34s+kSGbp9b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66gbktEwzmcuqqMsyjYWePVDnrGhkkh0PeV7G4q0zyIMv1zV60KIRJ0zyY5XppCxqKWWusxzF9vMRAqy4MN9hGlEdaOIO4UQbRoj+xLiD9CQLrIqywirJVCblEcJ4Ryag3ruLNQ50BFZHUwseI92BcefIo9W8XwTGRMpZQks8N3r3jop2Tar1bujmgRvGqX3Pbavfik1nuSqrOhbKmXkIliw/DcrKmg0Dax2tlbDeK0uF8x65mZRbifGDYQl1UATUcluEe0QjnJHVDqOzQW+Y6UVDfsZYeJxms3sGRKDagf+s0Au/9YghZUdZgOFLxjeekMz2liZ8GwP95xpNfTeOe/WbbwmIP9wKPDe//p2Nh713ftvmC1BLAQI/AxQAAAgIAItwhVhR2A/k6gQAANMjAAAZAAAAAAAAAAAAAAC0gQAAAABiZTA0NjgyZDA3NTkzMzM0ZDI0ZS5qc29uUEsBAj8DFAAACAgAi3CFWKEq4U1fAQAArwIAAAsAAAAAAAAAAAAAALSBIQUAAHJlcG9ydC5qc29uUEsFBgAAAAACAAIAgAAAAKkGAAAAAA==";</script>
window.playwrightReportBase64 = "data:application/zip;base64,UEsDBBQAAAgIAO1yhViHvOPvHg8AAPSaAAAZAAAAYmUwNDY4MmQwNzU5MzMzNGQyNGUuanNvbs1dW2/cNhb+K8K82AE8Kq+6GNiHJptsAiTtovXuAtsGhUbDsbWZGQ0kuXaQzX9fUuNsOJRkkfRhWqBIx7aG+kiec3ju/LTYVFvxZr24XKwEYklG1ijlOaWUrQkTi4v+7z8UOyGfuKubD3F7EGXctfIvnWjl/y9/+dR/mhxjmRR5ztZCrIgQyYptVkWB1NerbqtGbcR+LZo2+vEg9tHfmuJwE62LroiK/TraCfmhf7D/cS3asqkOXVXv5QCHpv6PKLsHcOVNU++q2538w7Yui/6Zy089/CH0bbWXvyX5xaKst7c7+ST9fLFY3zYP38N5ii8WxX5fd/1v1DTfS8jF9cOn+rYr6/694l6O2om1AlR0N/LPi3/Jl0WH4lpE8plDvRf7biG/04j2dvuwYuar2q5ou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yxyovK6zSTGdSFnCF9b07DNaBWSBOLdCSmg6se2SvwMFaGm0IcbBbvPa0XH3uhfx/+7ldfn3RJaI0gKUPm1z6RGceLm5KPzQL+5+LNe27cTxHX/sdY8UrWrHPhdfNu9Fl750/qfkFUEsBAj8DFAAACAgA7XKFWIe84+8eDwAA9JoAABkAAAAAAAAAAAAAALSBAAAAAGJlMDQ2ODJkMDc1OTMzMzRkMjRlLmpzb25QSwECPwMUAAAICADtcoVYcRQnnTcCAADlBwAACwAAAAAAAAAAAAAAtIFVDwAAcmVwb3J0Lmpzb25QSwUGAAAAAAIAAgCAAAAAtREAAAAA";</script>
18 changes: 18 additions & 0 deletions tests/work.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,24 @@ test.describe("Work page component", () => {
).toBeVisible();
await expect(page.getByText("Attribution")).toContainText("Attribution");
await expect(page.getByText("Courtesy of Northwestern")).toBeVisible();

// Shows the collection
const collectionsCard = page.getByTestId("card-wrapper").locator("a");
await expect(
collectionsCard.getByAltText("TEST Canary Records")
).toHaveAttribute(
"src",
`https://dc-test-api.rdc-staging.library.northwestern.edu/api/v2/collections/820fc328-a333-430b-a974-ac6218a1ffcd/thumbnail?aspect=square`
);
const figCaption = collectionsCard.locator("figcaption");
await expect(figCaption).toContainText("TEST Canary Records");
await expect(figCaption.getByTestId("work-count-total")).toContainText(
"3 Works"
);
const workCountTypes = figCaption.getByTestId("work-count-type");
await expect(workCountTypes.nth(0)).toContainText("1");
await expect(workCountTypes.nth(1)).toContainText("1");
await expect(workCountTypes.nth(2)).toContainText("1");
});

test("renders the Explore Further section Clover sliders", async ({
Expand Down

0 comments on commit b6e0ab1

Please sign in to comment.