migrate commits on wrong branch
This commit is contained in:
parent
f7e8526a06
commit
7a844466d8
3 changed files with 53 additions and 84 deletions
17
src/frontend/tests/end-to-end/python_api_generation.spec.ts
Normal file
17
src/frontend/tests/end-to-end/python_api_generation.spec.ts
Normal 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);
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue