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

unreliable test: /test for external file redirects to chat #6574

Open
Hweinstock opened this issue Feb 13, 2025 · 0 comments
Open

unreliable test: /test for external file redirects to chat #6574

Hweinstock opened this issue Feb 13, 2025 · 0 comments

Comments

@Hweinstock
Copy link
Contributor

Test Details

  • Name of test: /test for external file redirects to chat - Amazon Q Test Generation /test entry External file /test for external file redirects to chat
  • OS of failure: linux (E2E)
  • VSCode version of failure (minimum/insider/stable): insider and stable
  • Link to failing run: 99eefe0
  • Link to failing test:
    it('/test for external file redirects to chat', async () => {
    tab.addChatMessage({ command: '/test' })
    await tab.waitForChatFinishesLoading()
    await waitForChatItems(3)
    const externalFileMessage = tab.getChatItems()[3]
    assert.deepStrictEqual(externalFileMessage.type, 'answer')
    assert.deepStrictEqual(
    externalFileMessage.body,
    `<span style="color: #EE9D28;">&#9888;<b>I can't generate tests for ${fileName}</b> because the file is outside of workspace scope.<br></span> I can still provide examples, instructions and code suggestions.`
    )
    })

Log of Test Failure

AssertionError [ERR_ASSERTION]: Event has not finished loading in: 600000 ms
    at Messenger.waitForEvent (test/e2e/amazonq/framework/messenger.ts:206:20)
    at async Context.<anonymous> (test/e2e/amazonq/testGen.test.ts:152:17)

Additional Information

E2E test.

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

No branches or pull requests

1 participant