Skip to content

Commit

Permalink
Automatic Test Creation Webinar
Browse files Browse the repository at this point in the history
  • Loading branch information
pstakoun committed Jan 24, 2025
1 parent f1f3705 commit 6319feb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 38 deletions.
9 changes: 0 additions & 9 deletions cypress/tests/ui/bankaccounts.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,6 @@ describe("Bank Accounts", function () {
cy.visualSnapshot("Bank Account Form with Errors and Submit button disabled");
});

it.skip("soft deletes a bank account", function () {
cy.visit("/bankaccounts");
cy.getBySelLike("delete").first().click();

cy.wait("@gqlDeleteBankAccountMutation");
cy.getBySelLike("list-item").children().contains("Deleted");
cy.visualSnapshot("Soft Delete Bank Account");
});

// TODO: [enhancement] the onboarding modal assertion can be removed after adding "onboarded" flag to user profile
it("renders an empty bank account list state with onboarding modal", function () {
cy.wait("@getNotifications");
Expand Down
29 changes: 0 additions & 29 deletions cypress/tests/ui/new-transaction.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,35 +88,6 @@ describe("New Transaction", function () {
cy.visualSnapshot("Personal List Validate Transaction in List");
});

it.skip("navigates to the new transaction form, selects a user and submits a transaction request", function () {
const request = {
amount: "95",
description: "Fancy Hotel 🏨",
};

cy.getBySelLike("new-transaction").click();
cy.wait("@allUsers");

cy.getBySelLike("user-list-item").contains(ctx.contact!.firstName).click({ force: true });
cy.visualSnapshot("User Search First Name Input");

cy.getBySelLike("amount-input").type(request.amount);
cy.getBySelLike("description-input").type(request.description);
cy.visualSnapshot("Amount and Description Input");
cy.getBySelLike("submit-request").click();
cy.wait("@createTransaction");
cy.getBySel("alert-bar-success")
.should("be.visible")
.and("have.text", "Transaction Submitted!");
cy.visualSnapshot("Transaction Request Submitted Notification");

cy.getBySelLike("return-to-transactions").click();
cy.getBySelLike("personal-tab").click().should("have.class", "Mui-selected");

cy.getBySelLike("transaction-item").should("contain", request.description);
cy.visualSnapshot("Transaction Item Description in List");
});

it("displays new transaction errors", function () {
cy.getBySelLike("new-transaction").click();
cy.wait("@allUsers");
Expand Down

0 comments on commit 6319feb

Please sign in to comment.