diff --git a/cypress/e2e/02-update/funeralHomes.cy.d.ts b/cypress/e2e/02-update/funeralHomes.cy.d.ts new file mode 100644 index 00000000..cb0ff5c3 --- /dev/null +++ b/cypress/e2e/02-update/funeralHomes.cy.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/cypress/e2e/02-update/funeralHomes.cy.js b/cypress/e2e/02-update/funeralHomes.cy.js new file mode 100644 index 00000000..56f83a6b --- /dev/null +++ b/cypress/e2e/02-update/funeralHomes.cy.js @@ -0,0 +1,21 @@ +import { testUpdate } from '../../../test/_globals.js'; +import { login, logout } from '../../support/index.js'; +describe('Update - Funeral Homes', () => { + beforeEach('Loads page', () => { + logout(); + login(testUpdate); + }); + afterEach(logout); + it('Has a "Create" link on the Funeral Home Search', () => { + cy.visit('/funeralHomes'); + cy.location('pathname').should('equal', '/funeralHomes'); + cy.get("a[href$='/funeralHomes/new']").should('exist'); + }); + describe('Creates a New Funeral Home', () => { + it('Has no detectable accessibility issues', () => { + cy.visit('/funeralHomes/new'); + cy.injectAxe(); + cy.checkA11y(); + }); + }); +}); diff --git a/cypress/e2e/02-update/funeralHomes.cy.ts b/cypress/e2e/02-update/funeralHomes.cy.ts new file mode 100644 index 00000000..8166625f --- /dev/null +++ b/cypress/e2e/02-update/funeralHomes.cy.ts @@ -0,0 +1,25 @@ +import { testUpdate } from '../../../test/_globals.js' +import { login, logout } from '../../support/index.js' + +describe('Update - Funeral Homes', () => { + beforeEach('Loads page', () => { + logout() + login(testUpdate) + }) + + afterEach(logout) + + it('Has a "Create" link on the Funeral Home Search', () => { + cy.visit('/funeralHomes') + cy.location('pathname').should('equal', '/funeralHomes') + cy.get("a[href$='/funeralHomes/new']").should('exist') + }) + + describe('Creates a New Funeral Home', () => { + it('Has no detectable accessibility issues', () => { + cy.visit('/funeralHomes/new') + cy.injectAxe() + cy.checkA11y() + }) + }) +})