aws / aws/aws-toolkit-vscode

unreliable test: E2E `Shows @workspace`

Open
#6,745 0 comments 0 reactions 0 assignees View on GitHub
tests-ci-cd
Dominant language
TypeScript
Stars
2k
Forks
807
Avg merge
10h 12m
Merged PRs (30d)
7

Description

## Test Details

- Name of test: "`Shows @workspace`"
- OS of failure: E2E linux
- VSCode version of failure (minimum/insider/stable): stable
- Link to failing run: https://github.com/aws/aws-toolkit-vscode/commit/997b3b73ef07249d093d909265e479a9d0c81426
- Link to failing test: https://github.com/aws/aws-toolkit-vscode/blob/997b3b73ef07249d093d909265e479a9d0c81426/packages/amazonq/test/e2e/amazonq/chat.test.ts#L52-L54

## Log of Test Failure
```
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected

+ []
- [
- '@workspace'
- ]
at assertContextCommands (test/e2e/amazonq/assert.ts:33:12)
at Context. (test/e2e/amazonq/chat.test.ts:53:30)
at Context.fn (/codebuild/output/src2838335366/src/github.com/aws/aws-toolkit-vscode/packages/core/src/test/setupUtil.ts:34:24)

+ expected - actual

-[]
+[
+ "@workspace"
+]

```
## Additional Information

Contributor guide

Open the contributing guide

Research direction

Start with packages/amazonq/test/e2e/amazonq/chat.test.ts lines 52-54 and inspect assertContextCommands in test/e2e/amazonq/assert.ts at line 33. Reproduce the linked E2E failure and determine why the test observes no context commands; done means the test is reliable and passes with the expected @workspace value.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.