fix a few tests
This commit is contained in:
parent
b165608430
commit
a346df8059
|
@ -21,6 +21,7 @@ describe('tasks', () => {
|
||||||
cy.logout();
|
cy.logout();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// TODO: need to fix the next_task thing to make this pass
|
||||||
it('can complete and navigate a form', () => {
|
it('can complete and navigate a form', () => {
|
||||||
const groupDisplayName = 'Acceptance Tests Group One';
|
const groupDisplayName = 'Acceptance Tests Group One';
|
||||||
const modelId = `acceptance-tests-model-2`;
|
const modelId = `acceptance-tests-model-2`;
|
||||||
|
|
|
@ -31,7 +31,9 @@ Cypress.Commands.add('getBySel', (selector, ...args) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
Cypress.Commands.add('navigateToHome', () => {
|
Cypress.Commands.add('navigateToHome', () => {
|
||||||
cy.getBySel('nav-home').click();
|
cy.get('button[aria-label="Open menu"]').click();
|
||||||
|
cy.getBySel('side-nav-items').contains('Home').click();
|
||||||
|
// cy.getBySel('nav-home').click();
|
||||||
});
|
});
|
||||||
|
|
||||||
Cypress.Commands.add('navigateToAdmin', () => {
|
Cypress.Commands.add('navigateToAdmin', () => {
|
||||||
|
|
|
@ -123,10 +123,14 @@ export default function NavigationBar() {
|
||||||
<HeaderName href="/" prefix="" data-qa="spiffworkflow-logo">
|
<HeaderName href="/" prefix="" data-qa="spiffworkflow-logo">
|
||||||
<img src={logo} className="app-logo" alt="logo" />
|
<img src={logo} className="app-logo" alt="logo" />
|
||||||
</HeaderName>
|
</HeaderName>
|
||||||
<HeaderNavigation aria-label="Spiffworkflow">
|
<HeaderNavigation
|
||||||
|
data-qa="main-nav-header"
|
||||||
|
aria-label="Spiffworkflow"
|
||||||
|
>
|
||||||
{headerMenuItems()}
|
{headerMenuItems()}
|
||||||
</HeaderNavigation>
|
</HeaderNavigation>
|
||||||
<SideNav
|
<SideNav
|
||||||
|
data-qa="side-nav-items"
|
||||||
aria-label="Side navigation"
|
aria-label="Side navigation"
|
||||||
expanded={isSideNavExpanded}
|
expanded={isSideNavExpanded}
|
||||||
isPersistent={false}
|
isPersistent={false}
|
||||||
|
|
Loading…
Reference in New Issue