Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinkney-aws committed Feb 23, 2025
1 parent 0db682f commit 565cf5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions packages/amazonq/test/e2e/amazonq/chat.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { assertContextCommands, assertQuickActions } from './assert'
import { registerAuthHook, using } from 'aws-core-vscode/test'
import { loginToIdC } from './utils/setup'
import { webviewConstants } from 'aws-core-vscode/amazonq'
import { sleep } from 'aws-core-vscode/shared'

describe('Amazon Q Chat', function () {
let framework: qTestingFramework
Expand All @@ -35,9 +34,10 @@ describe('Amazon Q Chat', function () {
beforeEach(async () => {
// Make sure you're logged in before every test
registerAuthHook('amazonq-test-account')
await sleep(5000)
// await sleep(5000)
framework = new qTestingFramework('cwc', true, [])
tab = framework.getTabs()[0] // use the default tab that gets created
tab = framework.createTab()
console.log('number of tabs: ' + framework.getTabs().length)
store = tab.getStore()
})

Expand Down
10 changes: 5 additions & 5 deletions packages/amazonq/test/e2e/inline/inline.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ describe('Amazon Q Inline', async function () {
}

async function waitForRecommendations() {
const ok = await waitUntil(
async () =>
RecommendationHandler.instance.isSuggestionVisible() || session.getSuggestionState(0) === 'Showed',
waitOptions
)
const ok1 = await waitUntil(async () => session.getSuggestionState(0) === 'Showed', waitOptions)
if (!ok1) {
throw new Error(`Suggestion did not show: ${JSON.stringify(session.suggestionStates)}`)
}
const ok = await waitUntil(async () => RecommendationHandler.instance.isSuggestionVisible(), waitOptions)
if (!ok) {
throw new Error(
`Suggestions failed to become visible. Suggestion States: ${JSON.stringify(session.suggestionStates)}`
Expand Down

0 comments on commit 565cf5f

Please sign in to comment.