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-7320] - De-Parameterize Cypress Domain Record Create Tests #10615

Merged
merged 3 commits into from
Jun 27, 2024

Conversation

carrillo-erik
Copy link
Contributor

@carrillo-erik carrillo-erik commented Jun 26, 2024

Description 📝

The domain record tests in smoke-create-domain-records.spec.ts are parameterized against an array containing 5 items (each item representing a domain record type that can be created). This PR combines the tests into a single test which attempts to create each type of record as a result. By reducing the number of tests from 5 to 1, it results in a more performant solution (cuts test run time in half).

Changes 🔄

List any change relevant to the reviewer.

  • Combines the assertions from each record type creation in a single assertion.

Target release date 🗓️

2024/07/08

Preview 📷

Before After
before-change after-change

How to test 🧪

Verification steps

  • Checkout this branch and run the verify the test passes with the performance improvements as described above.
  • Execute either of the following commands:
    • yarn cy:debug then run the smoke-create-domain-records.spec.ts test in the browser.
    • yarn cy:run -s "cypress/e2e/core/domains/smoke-create-domain-records.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

@carrillo-erik carrillo-erik added the e2e Indicates that a PR touches Cypress tests in some way label Jun 26, 2024
@carrillo-erik carrillo-erik self-assigned this Jun 26, 2024
@carrillo-erik carrillo-erik requested a review from a team as a code owner June 26, 2024 14:38
@carrillo-erik carrillo-erik requested review from cliu-akamai and removed request for a team June 26, 2024 14:38
@carrillo-erik carrillo-erik requested a review from a team as a code owner June 26, 2024 14:41
@carrillo-erik carrillo-erik requested review from jaalah-akamai, AzureLatte and jdamore-linode and removed request for a team June 26, 2024 14:41
Copy link

github-actions bot commented Jun 26, 2024

Coverage Report:
Base Coverage: 82.24%
Current Coverage: 82.24%

Copy link
Contributor

@AzureLatte AzureLatte left a comment

Choose a reason for hiding this comment

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

Test passed

@mjac0bs mjac0bs changed the title test: [M3-7020] - De-Parameterize Cypress Domain Record Create Tests test: [M3-7320] - De-Parameterize Cypress Domain Record Create Tests Jun 27, 2024
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.

Thanks for the improvement!
Screenshot 2024-06-27 at 8 47 17 AM

@mjac0bs mjac0bs added the Approved Multiple approvals and ready to merge! label Jun 27, 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.

Thanks @carrillo-erik! Especially appreciate the clean-up: replacing the deprecated helpers, improving const names, etc.

@carrillo-erik carrillo-erik merged commit 2a356c0 into linode:develop Jun 27, 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! e2e Indicates that a PR touches Cypress tests in some way
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants