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

Improved scenario organization (backwards compatible parrot-friendly enhancement) #211

Open
PageTMcEneaney opened this issue Jun 1, 2023 · 1 comment

Comments

@PageTMcEneaney
Copy link

PageTMcEneaney commented Jun 1, 2023

Issue

A single list is sufficient when we have limited scenarios, but we're finding we have too many scenarios and it can be difficult to find the one you need. We have multiple locales, audiences, products & api responses that we need to mock, which results in a long list with redundant keywords in the title

Examples

Here is an example of the default view of scenarios vs how long a hidden list can be
image

Proposed Solutions

I would like to start a discussion around this topic to find the easiest way to add some additional organization. Here are some Ideas I had (including very quick sketchy mock ups just to illustrate the idea)

  1. Folders or Drawers - Each describe in the parrot-friendly syntax would act as a folder or layer of organization, and each it would act as the scenario. For the example above you could have something like Locale > Single / Multi > Scenario
image image
  1. Tags or Labels - Each it could accept an optional array of 'tags' to be applied to the scenario.
image
@smackfu
Copy link
Member

smackfu commented Jun 5, 2023

Just thinking out loud but option (1) would be fairly straightforward to do in a backwards compatible way:

  • Have nested describe blocks create a scenario with those names appended with some "magic delimiter" string. e.g. "Full Success >>> has one friendly ship"
  • An updated extension would know how to interpret ">>>" but a non-updated one would still work and just show a single list.

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

No branches or pull requests

2 participants