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-8914] - POC: Centralized Locators for Linode Page in Cypress UI Automation Framework #11455

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

subsingh-akamai
Copy link
Contributor

@subsingh-akamai subsingh-akamai commented Dec 23, 2024

Description 📝

The objective of this proof of concept (PoC) task is to enhance the UI automation framework in Cypress by implementing centralized locators for the Linode page. This will involve:

  • Identifying all the locators used on the Linode page used in test cypress/e2e/core/linodes/smoke-linode-landing-table.spec.ts
  • Creating a centralized repository or file to store these locators.
  • Refactoring existing Cypress test scripts to utilize the centralized locators.

Changes 🔄

As part of POC, I have updated of locators in test cypress/e2e/core/linodes/smoke-linode-landing-table.spec.ts
Below 2 files are created under cypress/support/ui/locators to store locators used in above test

  • common-locators.ts
  • linode-locators.ts

How to test 🧪

yarn cy:run -s cypress/e2e/core/linodes/smoke-linode-landing-table.spec.ts

Verification steps

When test executed using this command yarn cy:run -s cypress/e2e/core/linodes/smoke-linode-landing-table.spec.tsall tests should pass successfully.

image

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

👀 Doing a self review
❔ Our contribution guidelines
➕ Adding a changeset
🔐 Removing all sensitive information from the code and PR description


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

@subsingh-akamai subsingh-akamai added the e2e Indicates that a PR touches Cypress tests in some way label Dec 23, 2024
@subsingh-akamai subsingh-akamai self-assigned this Dec 23, 2024
@subsingh-akamai subsingh-akamai requested a review from a team as a code owner December 23, 2024 05:23
@subsingh-akamai subsingh-akamai requested review from AzureLatte and removed request for a team December 23, 2024 05:23
Copy link

github-actions bot commented Dec 23, 2024

Coverage Report:
Base Coverage: 86.96%
Current Coverage: 86.96%

@subsingh-akamai subsingh-akamai requested a review from a team as a code owner December 23, 2024 07:38
@subsingh-akamai subsingh-akamai requested review from bnussman-akamai, harsh-akamai and jdamore-linode and removed request for a team December 23, 2024 07:38
@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🎉 469 passing tests on test run #2 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing469 Passing2 Skipped102m 42s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e Indicates that a PR touches Cypress tests in some way
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants