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-7409] - Add GDPR agreement e2e #10033

Merged
merged 5 commits into from
Jan 8, 2024

Conversation

abailly-akamai
Copy link
Contributor

@abailly-akamai abailly-akamai commented Jan 4, 2024

Description 📝

Small PR to add e2e coverage for the GDPR agreement panel.

Since we are using existing test accounts it is preferable to mock the response from account/agreements.

Changes 🔄

  • Add a new gdpr-agreement.spec.ts
  • Add a new util to mock the response from account/agreements

Reproduction steps

Verification steps

  • pull code locally, run yarn up and yarn cy:debug, pick the gdpr-agreement test and run it

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

@abailly-akamai abailly-akamai changed the title test: [M3-7409] - Add GDPR agreement suite test: [M3-7409] - Add GDPR agreement e2e Jan 4, 2024
@abailly-akamai abailly-akamai self-assigned this Jan 4, 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.

This is awesome, thanks @abailly-akamai! I know this is a draft PR -- happy to re-review if any changes get made

}),
];

authenticate();
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
authenticate();

We only need this when we make calls to the API from within the test so we can safely get rid of it and the import for this test

@abailly-akamai abailly-akamai marked this pull request as ready for review January 5, 2024 16:01
@abailly-akamai abailly-akamai requested review from a team as code owners January 5, 2024 16:01
@abailly-akamai abailly-akamai requested review from cliu-akamai, dwiley-akamai and hana-akamai and removed request for a team January 5, 2024 16:01
mockAppendFeatureFlags,
mockGetFeatureFlagClientstream,
} from 'support/intercepts/feature-flags';
import { makeFeatureFlagData } from 'support/util/feature-flags';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

just a clean up of unused imports

component="label"
htmlFor="gdpr-checkbox"
style={{ marginLeft: 4 }}
>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Improving the accessibility here. The checkbox was never labeled.

Copy link

github-actions bot commented Jan 5, 2024

Coverage Report:
Base Coverage: 79.86%
Current Coverage: 79.83%

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.

Test passes locally and remotely ✅
Code review ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants