Skip to content

Commit

Permalink
first verify DOM node exists before checking it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-mann committed Jun 14, 2023
1 parent 39d7adf commit 4bf196b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cypress/tests/ui/new-transaction.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ describe("New Transaction", function () {
cy.database("find", "users", { id: ctx.contact!.id })
.its("balance")
.should("equal", ctx.contact!.balance + parseInt(payment.amount) * 100);
cy.getBySel("alert-bar-success");
cy.getBySel("alert-bar-success").should("not.exist");
cy.visualSnapshot("Personal List Validate Transaction in List");
});
Expand Down

0 comments on commit 4bf196b

Please sign in to comment.