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

chore(automate): function input mocks #3870

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cdriesler
Copy link
Member

@cdriesler cdriesler commented Jan 22, 2025

Description & motivation

  • It is not possible to test automation and function edit modals with mocks for a handful of small reasons

Changes:

  • Sets current user to function creator in mocks
  • Changes function release version selector default value to fall back to provided current release version, if present (previously only used to validate versions it finds in its own request)
  • Hard-codes function input schema mock to always surface a handful of useful states

Screen Shot 2025-01-22 at 16 03 27

@cdriesler cdriesler marked this pull request as ready for review January 22, 2025 17:25
@cdriesler cdriesler requested review from fabis94 and Mikehrn January 22, 2025 17:25
Copy link
Contributor

@Mikehrn Mikehrn left a comment

Choose a reason for hiding this comment

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

Cannot really judge the code, but works as expected :)

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