-
Notifications
You must be signed in to change notification settings - Fork 332
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
test: [M3-7452] - Add Cypress test to check empty state in Images landing page #10167
Conversation
Coverage Report: ✅ |
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.
Looks good pending one minor comment and we'll need to generate a test changeset. 🚢
import { mockGetAllImages } from 'support/intercepts/images'; | ||
import { authenticate } from 'support/api/authentication'; | ||
|
||
authenticate(); |
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.
Do we need this call to authenticate()
? Based on my understanding, we don't since we're mocking the request to GET images, not using a real API request, and since other similar empty landing page specs don't use it.
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.
@mjac0bs That's right -- authenticate()
is only necessary when we're making real API requests from inside the tests, so it's not needed here 👍
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.
Nice work @cliu-akamai! Approved pending the things Mariah mentioned:
- Remove call to
authenticate()
and related import - Add a changeset
631578b
to
3318a76
Compare
Description 📝
Add regression tests to check Images landing page empty state.
Major Changes 🔄
How to test 🧪