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

Course Calatog: Stay on selected department #1921

Merged
merged 4 commits into from
Sep 26, 2023

Conversation

annagav
Copy link
Contributor

@annagav annagav commented Sep 26, 2023

What are the relevant tickets?

Fix #1919

Description (What does it do?)

Don't switch departments when courses or programs tab is selected.

How can this be tested?

Go to catalog page. Select a department, switch to the programs tab. The same department should be selected.

Copy link
Contributor

@rachellougee rachellougee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT, just a small comment. Tested it that filter doesn't reset to All department when switching to programs tab now. It works as expected.

@@ -722,14 +722,14 @@ describe("CatalogPage", function() {

// Change to the programs tab.
inner.instance().changeSelectedTab("programs")
// Confirm that the selected departement resets to "All Departments".
expect(inner.state().selectedDepartment).equals("All Departments")
// Confirm that the selected department resets to "All Departments".
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: This comment doesn't match with code now. Is this test still needed?

@annagav annagav merged commit c493295 into main Sep 26, 2023
@annagav annagav deleted the ag/tab_selection_with_department branch September 26, 2023 17:48
@odlbot odlbot mentioned this pull request Sep 26, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Catalog page - department filter doesn't stay when clicking on "Programs" tab
2 participants