Skip to content

Commit

Permalink
chore: update e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
urmauur committed Dec 13, 2024
1 parent c9027a9 commit ee26bdd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions electron/tests/e2e/thread.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ test('Select GPT model from Hub and Chat with Invalid API Key', async ({

await page.getByTestId('txt-input-chat').fill('dummy value')

await page.getByTestId('btn-deny-product-analytics').click({ force: true })
await page.getByTestId('btn-send-chat').click({ force: true })
const denyButton = page.locator('[data-testid="btn-deny-product-analytics"]')

if ((await denyButton.count()) > 0) {
await denyButton.click({ force: true })
} else {
await page.getByTestId('btn-send-chat').click({ force: true })
}

await page.waitForFunction(
() => {
Expand Down

0 comments on commit ee26bdd

Please sign in to comment.