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