migrate commits on wrong branch

This commit is contained in:
anovazzi1 2024-03-28 17:17:24 -03:00
commit 7a844466d8
3 changed files with 53 additions and 84 deletions

View file

@ -0,0 +1,17 @@
import { test, expect } from '@playwright/test';
test('python_api_generation', async ({ page,context }) => {
await page.goto("/");
await page.locator('//*[@id="new-project-btn"]').click();
await context.grantPermissions(["clipboard-read", "clipboard-write"]);
await page.getByRole('heading', { name: 'Data Ingestion' }).click();
await page.waitForTimeout(2000);
await page.getByText('API', { exact: true }).click();
await page.getByRole('tab', { name: 'Python API' }).click();
await page.getByRole('button', { name: 'Copy Code' }).click();
const handle = await page.evaluateHandle(() => navigator.clipboard.readText());
const clipboardContent = await handle.jsonValue();
expect(clipboardContent.length).toBeGreaterThan(0);
});