-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: removing public catalog's dependency on enterprise catalog default results #320
feat: removing public catalog's dependency on enterprise catalog default results #320
Conversation
96a62f3
to
ac98ec9
Compare
@@ -90,18 +80,6 @@ describe('catalog no results deck works as expected', () => { | |||
); | |||
}); | |||
}); | |||
test('API error responses will hide content deck', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not relevant any more because there are no api errors to deal with!
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #320 +/- ##
==========================================
- Coverage 83.24% 82.49% -0.75%
==========================================
Files 38 38
Lines 716 697 -19
Branches 221 219 -2
==========================================
- Hits 596 575 -21
- Misses 116 118 +2
Partials 4 4
☔ View full report in Codecov by Sentry. |
@@ -523,23 +530,8 @@ describe('Main Catalogs view works as expected', () => { | |||
), | |||
).toBeInTheDocument(); | |||
}); | |||
test('no program search results displays popular programs text', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this being taken out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we're not testing the no results component directly, we're testing the mocked algolia component is rendered in when there are no hits. As such, we don't need two tests saying "does it say programs" and "does it say courses" any more, just "does it say".
ac98ec9
to
718faf9
Compare
666c578
to
088627e
Compare
088627e
to
92abf79
Compare
Functionally, nothing changes with this PR as far as UX is concerned
What this PR does:
CatalogNoResultsDeck
component's call to the enterprise catalog service to fetch default algolia results.