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: Amazon Q Test Generation /test entry Unsupported language /test for unsupported language redirects to chat #6575

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

Comments

@Hweinstock
Copy link
Contributor

Hweinstock commented Feb 13, 2025

Test Details

  • Name of test: Amazon Q Test Generation /test entry Unsupported language /test for unsupported language redirects to chat
  • OS of failure: linux (E2E)
  • VSCode version of failure (minimum/insider/stable): all
  • Link to failing run: 99eefe0
  • Link to failing test:
    it(`/test for unsupported language redirects to chat`, async () => {
    tab.addChatMessage({ command: '/test' })
    await tab.waitForChatFinishesLoading()
    await waitForChatItems(3)
    const unsupportedLanguageMessage = tab.getChatItems()[3]
    assert.deepStrictEqual(unsupportedLanguageMessage.type, 'answer')
    assert.deepStrictEqual(
    unsupportedLanguageMessage.body,
    `<span style="color: #EE9D28;">&#9888;<b>I'm sorry, but /test only supports Python and Java</b><br></span> While ${language.charAt(0).toUpperCase() + language.slice(1)} is not supported, I will generate a suggestion below.`
    )
    })

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:124:17)

Additional Information

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