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

feature(frontend): Adding Test Execution Deep Link #2747

Merged
merged 1 commit into from Jun 16, 2023

Conversation

xoscar
Copy link
Collaborator

@xoscar xoscar commented Jun 16, 2023

This PR adds a way for users to go to use a deep link to start a test execution

Changes

  • Adds new page to support automated test runs
  • Adds logic to fetch environment and variables from the query
  • Updates hooks to use an object as parameters for running tests

Fixes

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

https://www.loom.com/share/50de4440c25b46738ca1c643cd72c195

@xoscar xoscar linked an issue Jun 16, 2023 that may be closed by this pull request
@xoscar xoscar self-assigned this Jun 16, 2023
@xoscar xoscar marked this pull request as ready for review June 16, 2023 21:12
@@ -28,11 +36,11 @@ const useTestCrud = () => {
const {onOpen} = useMissingVariablesModal();

const runTest = useCallback(
async (test: Test, runId?: string, environmentId = selectedEnvironment?.id) => {
const run = async (variables: TEnvironmentValue[] = []) => {
async ({test, environmentId = selectedEnvironment?.id, variables = [], onCancel = noop}: TTestRunRequest) => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was getting out of hand, that's why I moved it to an object as it has better handling on optional vs required params

Copy link
Contributor

@jorgeepc jorgeepc left a comment

Choose a reason for hiding this comment

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

🔥

@xoscar xoscar merged commit bbb642c into main Jun 16, 2023
24 checks passed
@xoscar xoscar deleted the 2745-test-run-from-deeplink branch June 16, 2023 21:50
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.

Test Run from DeepLink
2 participants