Skip to content

Commit

Permalink
feat(endpoint-media): show media in files view
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Feb 18, 2022
1 parent a3b388e commit dc40f79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/endpoint-media/tests/integration/200-files-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ test("Views previously uploaded file", async (t) => {
.get("/media/files")
.set("Cookie", [cookie]);
const filesDom = new JSDOM(filesResponse.text);
const fileLink = filesDom.window.document.querySelector(".file a");
const fileName = fileLink.textContent;
const fileLink = filesDom.window.document.querySelector(".file-grid a");
const fileName = fileLink.querySelector("img").alt;
const fileId = fileLink.href.split("/").pop();

// Visit file page
Expand Down

0 comments on commit dc40f79

Please sign in to comment.