-
-
Notifications
You must be signed in to change notification settings - Fork 50
add quote block type #161
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
add quote block type #161
Conversation
PR Summary
|
Hey @Gummibeer, I just looked into it, and it shouldn't be too much to do. It would be totally sufficient, if you add it within these two test-methods (so you don't have to create a new test-file):
The first one is pretty simple, since it can pretty much be copy-pasted from above For the second one it's almost the same, but you should add the json-structure for the new block to the snapshot: If you have any questions, feel free to reach out! :) I'll make sure to add it to the docs when it's released. I'll make sure to push this as |
@johguentner I have looked into the test but it looks like it uses a fixture based on a notion doc you own somewhere!? |
Most of the current tests (including the If nothing is wrong, you should be able to run This solution is not optimal, but alright for the moment (a better solution is in progress and described below). So please feel free to basically copy-past the testing-structure in the test-methods and add the structure within the JSON snapshots. For new features (since |
That was what I thought is already the case.^^ The Saloon package by @Sammyjo20 has a record response feature: https://docs.saloon.dev/testing/recording-requests I mean for this PR it would still require you to add the new Quote block manually as it's a new supported type. Or you would just add all possible blocks to one page and the implemented check tests would just have to pick the correct index for testing. |
That's a really good suggestion! I never though about using Github Actions regarding the generation of these snapshots. This would even work with what we have planned within The only objection I'd have about this, is that it would allow people to modify the according workspace with possible malicious intents (not likely, however possible), but I'm sure there is a good solution for this - like creating a token, which has only access to a specific page, which is specifically designed for the implementation of external features. I'll talk with @mechelon about this idea. Since we still have not pushed |
You could use a readonly token for that GH Action. In case a write action needs a new fixture you could still checkout the code locally or even use a PR action which, so far I know, has to be manually allowed by a team member if the PR is created by an external contributor. At least I have to allow the test actions for external contributors in my projects. |
No description provided.