aws / aws/aws-toolkit-vscode

unreliable test: Amazon Q Feature Dev file-level accepts accept button button text shows "Accept all changes" when no files are accepted or rejected, and "Accept remaining changes" otherwise

Open
#6,632 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: Amazon Q Feature Dev file-level accepts accept button button text shows "Accept all changes" when no files are accepted or rejected, and "Accept remaining changes" otherwise
- OS of failure: Linux (E2E)
- VSCode version of failure (minimum/insider/stable): stable
- Link to failing run: https://github.com/aws/aws-toolkit-vscode/commit/a5129827b6af1edf738714eb5dbffcee2dce547e
- Link to failing test: https://github.com/aws/aws-toolkit-vscode/blob/d6be74245ff70d9708b8286d0eb9abaf5a63f0ad/packages/amazonq/test/e2e/amazonq/featureDev.test.ts#L295-L314

## Log of Test Failure
```
AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:

assert_1.default.ok(insertCodeButton.pillText === 'Accept remaining changes')

at Context. (test/e2e/amazonq/featureDev.test.ts:303:28)

+ expected - actual

-false
+true

```

## Additional Information

Contributor guide

Open the contributing guide

Research direction

Start with packages/amazonq/test/e2e/amazonq/featureDev.test.ts at lines 295-314 and inspect the failing assertion at line 303. Run the linked Amazon Q Feature Dev E2E test on Linux, then verify that the accept button text is reliable for both the no-accepted-or-rejected-files and remaining-changes cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.