Skip to content

Commit

Permalink
start using invoiceListPage
Browse files Browse the repository at this point in the history
  • Loading branch information
juacompe committed May 3, 2024
1 parent 26b329e commit 5966c38
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { CypressBrowser } from "../../../e2e/browsers/CypressBrowser";
import { InvoiceListPage } from "../pages/InvoiceListPage";
import { LoginPage } from "../pages/LoginPage";

describe("Invoice Page 2020", () => {
let invoiceListPage: InvoiceListPage;

describe("for guest", () => {
it("requires login to see an invoice", () => {
openInvoiceDetailNumber("202001-001");
Expand All @@ -8,7 +14,7 @@ describe("Invoice Page 2020", () => {
describe("for authenticated user", () => {
beforeEach(() => {
cy.visit("/invoices/2020");
cy.login();
invoiceListPage = new LoginPage(new CypressBrowser()).login();
});

it("Visits the view invoice url should see the original invoice", () => {
Expand Down

0 comments on commit 5966c38

Please sign in to comment.