🛑 DO NOT MERGE test: update e2e tests with afterEach
cleanup
#2677
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🛑 DO NOT MERGE until 0.19 has been fully released
Description
Prefer
afterEach
for vault resource cleanup. This leaves the state clean and ready for the next test or test suite. If this wasn't done, the next following test or test suite would also rely onbeforeEach
tests for clean up before running.How to Test
Setup scenarios for ce/ent by docker/aws by admin/desktop and run the corresponding tests changed in this PR:
e2e-tests/admin/tests/credential-store-vault.spec.js
e2e-tests/admin/tests/delete-resources.spec.js
e2e-tests/admin/tests/credential-store-vault-ent.spec.js
e2e-tests/admin/tests/ssh-certificate-injection-vault-ent.spec.js
e2e-tests/admin/tests/ssh-credential-injection-vault-ent.spec.js
e2e-tests/desktop/tests/credentials.spec.js
e2e-tests/admin/tests/delete-resources-ent.spec.js
Checklist
- [ ] I have added before and after screenshots for UI changes- [ ] I have added JSON response output for API changes- [ ] I have commented on my code, particularly in hard-to-understand areas