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

e2e test automation #42

Open
nibtime opened this issue Jul 9, 2022 · 0 comments
Open

e2e test automation #42

nibtime opened this issue Jul 9, 2022 · 0 comments
Labels
e2e-testing help wanted Extra attention is needed
Milestone

Comments

@nibtime
Copy link
Owner

nibtime commented Jul 9, 2022

Motivation

for testing the strict CSP features, it is mandatory to do so in a real production test environment. Until now, I've been doing that manually with the provisionary e2e test app. For version 1.0, automated e2e tests are mandatory

Ideas

In #34, someone asked how to make this package work with styles from Mantine, so I created a setup for it. I think it's the React component framework with the best design I've seen so far, so I really like to go with that to build a beautiful interactive app with
it: https://e2e-next-safe-middleware.vercel.app/mantine. It uses a very common CSS-in-JS framework (emotion) under the hood. The goal of this package is, to get CSP out of the way for actual app development, so building an app with Mantine would in and itself show if that's the case, both for scripts (if no interaction isn't blocked, strict CSP works) and styles (if it displays beautifully, strict inline styles work)

For test automation, I thought the Checkly integration with Vercel could be a great fit, as PRs already deploy with Vercel and the integration can make deployments fail if post-deploy e2e tests fail which then blocks the PR, without any additional setup to the repository required. Checkly tests use Playwright.

I just set up a docs website with Nextra (#30), (a SSG for MDX on top of Next.js) with 12.2 and stable middleware. So the docs website itself is sort of an e2e test for the package as well.

Help wanted

I am open to any good ideas and questions regarding test scenarios and test strategies. If you have something on your mind, feel free to share it.

@nibtime nibtime added help wanted Extra attention is needed e2e-testing labels Jul 9, 2022
@nibtime nibtime added this to the eins null milestone Jul 9, 2022
@nibtime nibtime pinned this issue Jul 9, 2022
@nibtime nibtime unpinned this issue Jul 27, 2022
@nibtime nibtime mentioned this issue Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e-testing help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant