refactor: update UI interactions and improve test stability (#6042)

This commit is contained in:
Abhishek S Lal
2025-11-08 01:54:50 +05:30
committed by GitHub
parent 3fe5299d8e
commit a186df3ac4
21 changed files with 171 additions and 211 deletions

View File

@@ -10,8 +10,8 @@ test.describe.serial('Create and Delete Response Examples', () => {
test('should create a response example from response bookmark', async ({ pageWithUserData: page }) => {
await test.step('Open collection and request', async () => {
await page.locator('#sidebar-collection-name').getByText('collection').click();
await page.locator('.collection-item-name').getByText('create-example').click();
await page.locator('#sidebar-collection-name').filter({ hasText: 'collection' }).click();
await page.locator('.collection-item-name').filter({ hasText: 'create-example' }).click();
});
await test.step('Send request and validate example creation', async () => {