Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing requirements sidebar Cypress test #697

Merged
merged 2 commits into from
Jun 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion cypress/integration/accessibility-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,16 @@ it('Check navbar accessibility', () => {
// Check the accessibility of the requirements sidebar with all toggles fully open
// Note that the selector in checkA11y ensures only the sidebar is inspected
it('Check accessibility of the requirements sidebar', () => {
// Note that there must a completed requirement (i.e. swim test)
cy.get('[data-cyId=semester-addCourse]').click();
cy.get('[data-cyId=newCourse-dropdown]').type('PE 1100');
cy.get('[data-cyId=newCourse-searchResult]').first().click();
cy.get('[data-cyId=modal-button]').click();

// open all dropdowns in the sidebar
cy.get('[data-cyId=requirements-viewMore]').click({ multiple: true });
cy.get('[data-cyId=requirements-showCompleted]').click({ multiple: true });
cy.get('[data-cyId=requirements-displayToggle]').click({ multiple: true });
cy.get('[data-cyId=requirements-displayToggle]').click({ multiple: true, force: true });

cy.checkA11y('[data-cyId=reqsSidebar]');
});
Expand Down