add basic test
parent
4bc7d0a844
commit
58d6cc76b5
|
|
@ -0,0 +1 @@
|
||||||
|
export {};
|
||||||
|
|
@ -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();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
@ -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()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
Loading…
Reference in New Issue