Kong / Kong/insomnia

Ability to set prompt tag value when using Inso CLI

Open
#6,164 0 comments 0 reactions 0 assignees View on GitHub
B-bug PA-inso
Dominant language
TypeScript
Stars
40k
Forks
2.4k
Avg merge
2d 13h
Merged PRs (30d)
61

Description

### Expected Behavior

When I set an environment variable to use the prompt tag, I expect to still be able to run the test suite on the command-line using the Inso CLI, either by setting the variable value on the command-line as part of the run command, or via the command-line prompt, similar to the prompt for the collection and environment.

### Actual Behavior

Instead I get "window is not defined" error.

### Reproduction Steps

Set an environment variable to use the prompt tag and try running using Inso.

### Is there an existing issue for this?

- [X] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for this problem.

### Additional Information

NA

### Insomnia Version

2023.4.0

### What operating system are you using?

Windows

### Operating System Version

Windows 10 Enterprise

### Installation method

insomnia.rest

### Last Known Working Insomnia version

I don't believe this ever worked

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Inso CLI test-suite run on Windows with an environment variable using the prompt tag. Read the CLI handling for prompt tags and command-line prompts, then verify that the run no longer raises "window is not defined" and that the prompt-tag value can be supplied from the command line or prompt.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.