💡 (index.tsx): remove trailing commas for cleaner code formatting
✅ (tests): remove unnecessary keyboard press and fix formatting in chatInputOutputUser.spec.ts ✅ (tests): update selector for copy button in curl_api_generation.spec.ts ✅ (tests): fix formatting in intComponent.spec.ts ✅ (tests): update end-to-end tests for improved stability and clarity - Remove redundant "Close" button clicks in logs and textInputOutput tests - Add "more-options-modal" click in promptModalComponent and saveComponents tests - Replace role-based selectors with test ID selectors for "Copy Code" button - Update API key section text in userSettings test for consistency
This commit is contained in:
parent
aa94e42e0d
commit
742f93e229
12 changed files with 87 additions and 91 deletions
|
|
@ -21,9 +21,9 @@ test("python_api_generation", async ({ page, context }) => {
|
|||
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();
|
||||
await page.getByTestId("icon-Copy").click();
|
||||
const handle = await page.evaluateHandle(() =>
|
||||
navigator.clipboard.readText(),
|
||||
navigator.clipboard.readText()
|
||||
);
|
||||
const clipboardContent = await handle.jsonValue();
|
||||
expect(clipboardContent.length).toBeGreaterThan(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue