Skip to content

Commit

Permalink
ci: debug erroring workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed May 30, 2023
1 parent 28f6d3f commit 151b54c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/endpoint-posts/tests/integration/302-post-delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ test("Deletes post and redirects to posts page", async (t) => {

// Get post data by parsing list of posts and getting values from link
const postsResponse = await request.get("/posts");
t.log("postsResponse", postsResponse);
const postsDom = new JSDOM(postsResponse.text);
const postLink = postsDom.window.document.querySelector(".card a");
const postId = postLink.href.split("/").pop();
t.log("postId", postId);

// Delete post
const result = await request.post(`/posts/${postId}/delete`);
Expand Down

0 comments on commit 151b54c

Please sign in to comment.