Skip to content

test: [M3-7468] - Add Cypress integration test for API maintenance mode handling#9934

Merged
jdamore-linode merged 4 commits intolinode:developfrom
jdamore-linode:M3-7468-cypress-maintenance-mode
Nov 28, 2023
Merged

test: [M3-7468] - Add Cypress integration test for API maintenance mode handling#9934
jdamore-linode merged 4 commits intolinode:developfrom
jdamore-linode:M3-7468-cypress-maintenance-mode

Conversation

@jdamore-linode
Copy link
Contributor

Description 📝

Adds an integration test for Cloud Manager's handling of the API's maintenance mode. It confirms that the maintenance mode message and link to status page are shown.

Changes 🔄

  • Adds maintenance mode integration test
  • Cleans up Cypress response types

How to test 🧪

We can rely on CI for this, but you can run the new test locally with this command:

yarn && yarn build && yarn start:manager:ci, and then:

yarn cy:run -s "cypress/e2e/core/general/maintenance-mode.spec.ts"

As an Author I have considered 🤔

Check all that apply

  • 👀 Doing a self review
  • ❔ Our contribution guidelines
  • 🤏 Splitting feature into small PRs
  • ➕ Adding a changeset
  • 🧪 Providing/Improving test coverage
  • 🔐 Removing all sensitive information from the code and PR description
  • 🚩 Using a feature flag to protect the release
  • 👣 Providing comprehensive reproduction steps
  • 📑 Providing or updating our documentation
  • 🕛 Scheduling a pair reviewing session
  • 📱 Providing mobile support
  • ♿ Providing accessibility support

@jdamore-linode jdamore-linode self-assigned this Nov 27, 2023
@jdamore-linode jdamore-linode requested a review from a team as a code owner November 27, 2023 16:12
@jdamore-linode jdamore-linode requested review from cliu-akamai and cpathipa and removed request for a team November 27, 2023 16:12
Copy link
Member

@bnussman-akamai bnussman-akamai left a comment

Choose a reason for hiding this comment

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

Awesome!

Screenshot 2023-11-27 at 12 10 01 PM

*/
it('shows maintenance screen when API is in maintenance mode', () => {
mockApiMaintenanceMode();
cy.visitWithLogin('/linodes');
Copy link
Member

Choose a reason for hiding this comment

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

Is /linodes significant? Should we consider / instead? It probably makes no difference at all, but maybe we want things to be less /linodes-centric

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah there wasn't a lot of thought put into that, I just figured that since / redirects to /linodes anyway, it was as good a choice as any to use here. But / really would make more sense!

@jdamore-linode jdamore-linode added Add'tl Approval Needed Waiting on another approval! and removed Ready for Review labels Nov 27, 2023
@dwiley-akamai dwiley-akamai self-requested a review November 28, 2023 15:20
Copy link
Contributor

@dwiley-akamai dwiley-akamai left a comment

Choose a reason for hiding this comment

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

Code review ✅
Test passing ✅

Screenshot 2023-11-28 at 10 26 54 AM

@jdamore-linode jdamore-linode added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Nov 28, 2023
@jdamore-linode jdamore-linode merged commit edd9206 into linode:develop Nov 28, 2023
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!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants