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(sdk): add some basic E2E tests with test.mermaidchart.com #7

Merged
merged 2 commits into from
Nov 24, 2023

Conversation

aloisklink
Copy link
Contributor

Draft PR: This PR is stacked on top of:

Please change this PR to target main once #5 has been merged.

In PR #5 I added some unit tests for the @mermaidchart/sdk package that mock communication so it works offline. However, if we really want to test if our API works, we need to have proper E2E tests with a real server.

I've added a basic E2E test with that is run with pnpm run test:e2e on https://test.mermaidchart.com/. These E2E tests are not run when doing pnpm test, since they're slower and need an API key.

For GitHub Actions, I've set up an API Key for a new user I created on https://test.mermaidchart.com/ called [email protected].

Copy link

vercel bot commented Nov 23, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
office-plugin-site ⬜️ Ignored (Inspect) Nov 23, 2023 6:16pm

@sidharthv96 sidharthv96 changed the base branch from fix/fix-handleAuthorizationResponse-missing-state-in-url to main November 24, 2023 08:26
@aloisklink aloisklink marked this pull request as ready for review November 24, 2023 08:54
@aloisklink aloisklink merged commit ff003a8 into main Nov 24, 2023
4 checks passed
@aloisklink aloisklink deleted the test/add-e2e-tests-for-sdk branch November 24, 2023 08:54
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.

2 participants