Skip to content

Conversation

@dmcintyr-akamai
Copy link
Contributor

Description 📝

One of the tests in alerts-create.spec.ts was failing bc the relevant button was below the fold when the code snippet window opened.

Test now passes in devcloud, and it still passes in dev environment.

Changes 🔄

Fix is to append .scrollIntoView() to the button. I added it in another place where the same button is retrieved even tho that test is not failing (yet).

I am fairly confident that the fix will remove the flakiness, as i can get the test to pass in cypress by manually scrolling the window so that the button is above the fold.

Scope 🚢

Upon production release, changes in this PR will be visible to:

  • All customers
  • Some customers (e.g. in Beta or Limited Availability)
  • No customers / Not applicable

How to test 🧪

pnpm run cy:run -s cypress/e2e/core/linodes/alerts-create.spec.ts

Author Checklists

As an Author, to speed up the review process, I considered 🤔

👀 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


  • I have read and considered all applicable items listed above.

As an Author, before moving this PR from Draft to Open, I confirmed ✅

  • All tests and CI checks are passing
  • TypeScript compilation succeeded without errors
  • Code passes all linting rules

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.

Thanks David!

@bnussman-akamai bnussman-akamai changed the title test [M3-10521]: Fix failing "alerts-create.spec.ts" test in DevCloud test: [M3-10521] - Fix failing alerts-create.spec.ts test in DevCloud Oct 2, 2025
@dmcintyr-akamai dmcintyr-akamai marked this pull request as ready for review October 2, 2025 18:57
@dmcintyr-akamai dmcintyr-akamai requested review from a team as code owners October 2, 2025 18:57
@dmcintyr-akamai dmcintyr-akamai requested review from cliu-akamai and removed request for a team October 2, 2025 18:57
@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🎉 832 passing tests on test run #4 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing832 Passing11 Skipped39m 7s

"@linode/manager": Tests
---

Fix failing "alerts-create.spec.ts" ts in DevCloud ([#12952](https://github.com/linode/manager/pull/12952))
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Fix failing "alerts-create.spec.ts" ts in DevCloud ([#12952](https://github.com/linode/manager/pull/12952))
Fix failing "alerts-create.spec.ts" in DevCloud ([#12952](https://github.com/linode/manager/pull/12952))

@github-project-automation github-project-automation bot moved this from Review to Approved in Cloud Manager Oct 2, 2025
@dmcintyr-akamai dmcintyr-akamai merged commit eb33c31 into linode:develop Oct 3, 2025
35 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Merged in Cloud Manager Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants