You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
await auto('Verify that **** Logo is displayed', { page, test }, options)
await auto('Click on "Sign In" button', { page, test }, options)
await page.waitForTimeout(5000)
await auto('Verify that a pop up modal is displayed', { page, test }, options)
await auto('Click on link "**********"', { page, test })
await auto('Verify a login screen is displayed', { page, test }, options)
but I get error:
Error: Connection error.
at OpenAI.makeRequest (/Users/suraj.kelkar/Downloads/playwright-typeScript/node_modules/.pnpm/[email protected]/node_modules/openai/src/core.ts:400:13)
at ChatCompletionRunner._createChatCompletion (/Users/suraj.kelkar/Downloads/playwright-typeScript/node_modules/.pnpm/[email protected]/node_modules/openai/src/lib/AbstractChatCompletionRunner.ts:432:28)
at ChatCompletionRunner._runFunctions (/Users/suraj.kelkar/Downloads/playwright-typeScript/node_modules/.pnpm/[email protected]/node_modules/openai/src/lib/AbstractChatCompletionRunner.ts:481:46)
The text was updated successfully, but these errors were encountered:
Hello,
I have set my api key within options variable as below:
import { test, expect } from '@playwright/test'
import { auto } from 'auto-playwright'
test.describe('todo tests', () => {
const options = {
openaiApiKey: '12eretretrtydsfgfdgxcxdv',
}
test('sample AI test @auto', async ({ page }) => {
const email = ''
const password = ''
await page.goto('https://***********')
await page.waitForTimeout(3000)
but I get error:
The text was updated successfully, but these errors were encountered: