Skip to content

Commit

Permalink
Update deleting_a_post.cy.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesJPaterson authored Feb 14, 2023
1 parent 1bbffcf commit 698db1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/cypress/e2e/deleting_a_post.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe("post function", () => {
cy.get("#message").type("cypress test 45");
cy.get("#submit").click();

cy.get("#delete").last().click();
cy.get('[data-cy="delete"]').last().click();

cy.get('[data-cy="post"]').contains("cypress test 45").should("not.exist");
});
Expand Down

0 comments on commit 698db1f

Please sign in to comment.