Feat/response examples testing fixes (#5974)

* fix: cloning

feat: add response saving limit

fix: status code stays OK when i save an example

* fix: lint

* fix: newly created examples are not opening in new tab

* fix: playwright tests

* fix: use itemUId to fins item

* fix: response save
This commit is contained in:
sanish chirayath
2025-11-05 19:13:21 +05:30
committed by GitHub
parent d8adb59d04
commit bdc8f391b7
11 changed files with 255 additions and 41 deletions

View File

@@ -27,7 +27,7 @@ test.describe.serial('Create and Delete Response Examples', () => {
await page.getByTestId('create-example-name-input').fill('Test Example from Bookmark');
await page.getByTestId('create-example-description-input').fill('This is a test example created from response bookmark');
await page.getByRole('button', { name: 'Create Example' }).click();
await expect(page.getByText('Test Example from Bookmark')).toBeVisible();
await expect(page.getByTestId('response-example-title')).toHaveText('create-example / Test Example from Bookmark');
});
});
@@ -61,6 +61,7 @@ test.describe.serial('Create and Delete Response Examples', () => {
test('should close modal when cancelled', async ({ pageWithUserData: page }) => {
await test.step('Test modal cancellation', async () => {
await page.locator('.collection-item-name').getByText('create-example').click();
await page.getByTestId('send-arrow-icon').click();
await page.getByTestId('response-bookmark-btn').click({ timeout: 30000 });
await page.getByRole('button', { name: 'Cancel' }).click();