cityssm/lottery-licence-manager

View on GitHub
cypress/e2e/02-update/licences.cy.ts

Summary

Maintainability
A
0 mins
Test Coverage
/* eslint-disable unicorn/filename-case, promise/catch-or-return, promise/always-return, promise/no-nesting */

import { testUpdate } from "../../../test/_globals.js";

import { logout, login } from "../../support/index.js";

describe("Licences - Update", () => {
    before(() => {
        logout();
        login(testUpdate);
    });

    // after(logout);

    it('Has a "Create" link on the dashboard', () => {
        cy.visit("/dashboard");
        cy.get("a[href$='/licences/new']").should("exist");
    });

    it('Has a "Create" link on the Licence Search', () => {
        cy.visit("/licences");
        cy.get("a[href$='/licences/new']").should("exist");
    });
});