sunrise-cms/cypress/e2e/02-update/lotOccupancies.cy.js

22 lines
738 B
JavaScript

import { testUpdate } from '../../../test/_globals.js';
import { logout, login } from '../../support/index.js';
describe('Update - Lot Occupancies', () => {
beforeEach(() => {
logout();
login(testUpdate);
});
afterEach(logout);
it('Has a "Create" link on the Lot Occupancy Search', () => {
cy.visit('/lotOccupancies');
cy.location('pathname').should('equal', '/lotOccupancies');
cy.get("a[href$='/lotOccupancies/new']").should('exist');
});
describe('Update a New Lot Occupancy', () => {
it('Has no detectable accessibility issues', () => {
cy.visit('/lotOccupancies/new');
cy.injectAxe();
cy.checkA11y();
});
});
});