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

test: [M3-7452] - Add Cypress test to check empty state in Images landing page #10167

Merged
merged 3 commits into from
Feb 29, 2024

Conversation

cliu-akamai
Copy link
Contributor

Description 📝

Add regression tests to check Images landing page empty state.

Major Changes 🔄

  • Add regression tests to check the empty state in Images landing page.

How to test 🧪

yarn cy:run -s "cypress/e2e/core/images/images-empty-landing-page.spec.ts"

@cliu-akamai cliu-akamai requested a review from a team as a code owner February 8, 2024 20:37
@cliu-akamai cliu-akamai requested review from jdamore-linode and removed request for a team February 8, 2024 20:37
Copy link

github-actions bot commented Feb 8, 2024

Coverage Report:
Base Coverage: 81.32%
Current Coverage: 81.32%

Copy link
Contributor

@mjac0bs mjac0bs left a 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();
Copy link
Contributor

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.

Copy link
Contributor

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 👍

@mjac0bs mjac0bs added the Add'tl Approval Needed Waiting on another approval! label Feb 13, 2024
Copy link
Contributor

@jdamore-linode jdamore-linode left a 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

@jdamore-linode jdamore-linode added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! Ready for Review labels Feb 20, 2024
@cliu-akamai cliu-akamai requested a review from a team as a code owner February 29, 2024 19:58
@cliu-akamai cliu-akamai requested review from hana-linode and carrillo-erik and removed request for a team February 29, 2024 19:58
@cliu-akamai cliu-akamai merged commit c4080ba into linode:develop Feb 29, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge! Missing Changeset
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants