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

22 lines
734 B
JavaScript

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