
* add trpc * trpc specific * fix deps * lint fix * upgrade prisma * nativeTypes * nope, not needed * fix app propviders * Revert "upgrade prisma" This reverts commit e6f2d2542a01ec82c80aa2fe367ae12c68ded1a5. * rev * up trpc * simplify * wip - bookings page with trpc * bookings using trpc * fix `Shell` props * call it viewerRouter instead * cleanuop * ssg helper * fix lint * fix types * skip * add `useRedirectToLoginIfUnauthenticated` * exhaustive-deps * fix callbackUrl * rewrite `/availability` using trpc Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
24 lines
766 B
TypeScript
24 lines
766 B
TypeScript
describe.skip("cancel", () => {
|
|
describe("Admin user can cancel events", () => {
|
|
before(() => {
|
|
cy.visit("/bookings");
|
|
cy.login("pro@example.com", "pro");
|
|
});
|
|
it("can cancel bookings", () => {
|
|
cy.visit("/bookings");
|
|
cy.get("[data-testid=bookings]").children().should("have.length.at.least", 1);
|
|
cy.get("[data-testid=cancel]").click();
|
|
|
|
cy.location("pathname").should("contain", "/cancel/");
|
|
|
|
cy.get("[data-testid=cancel]").click();
|
|
|
|
cy.location("pathname").should("contain", "/cancel/success");
|
|
|
|
cy.get("[data-testid=back-to-bookings]").click();
|
|
|
|
cy.location("pathname").should("eq", "/bookings");
|
|
cy.get("[data-testid=bookings]").children().should("have.length", 0);
|
|
});
|
|
});
|
|
});
|