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

[Guided onboarding] Add API integration tests #142261

Closed
alisonelizabeth opened this issue Sep 29, 2022 · 1 comment · Fixed by #144104
Closed

[Guided onboarding] Add API integration tests #142261

alisonelizabeth opened this issue Sep 29, 2022 · 1 comment · Fixed by #144104
Assignees
Labels

Comments

@alisonelizabeth
Copy link
Contributor

alisonelizabeth commented Sep 29, 2022

This issue is to track adding API integration tests for the guided onboarding routes (defined here).

Proposed test cases:

  • GET /state

    • Returns the state for all guides (?active=false)
    • Returns state for the active guide (?active=true)
    • Returns state from saved object if it exists
    • Returns an empty array if saved object doesn't exist
  • PUT /state

    • Updates a guide that has an existing saved object
    • Updates a guide that does not have a saved object
    • Updates any existing active guides to inactive
@elasticmachine
Copy link
Contributor

Pinging @elastic/platform-onboarding (Team:Journey/Onboarding)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants