From 366d85b141aa6f7aac253d3c7b832d92e85d8d5a Mon Sep 17 00:00:00 2001 From: sharan-bruno Date: Tue, 9 Jun 2026 09:53:11 +0530 Subject: [PATCH] fix(tests): update locators for save button in presets indicator tests (#8201) docs: add gRPC request flow documentation docs: add HTTP request execution flow documentation --- tests/collection/presets-indicator.spec.ts | 6 +++--- tests/utils/page/locators.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/collection/presets-indicator.spec.ts b/tests/collection/presets-indicator.spec.ts index d6ef97a24..37cc56e59 100644 --- a/tests/collection/presets-indicator.spec.ts +++ b/tests/collection/presets-indicator.spec.ts @@ -40,7 +40,7 @@ test.describe('Presets status dot in collection settings', () => { await test.step('Select gRPC request type and save', async () => { await locators.presets.requestType('grpc').check(); - await locators.presets.save().click(); + await locators.presets.saveBtn().click(); }); await test.step('Verify Presets dot appears when a non-default request type is selected', async () => { @@ -50,7 +50,7 @@ test.describe('Presets status dot in collection settings', () => { await test.step('Switch back to HTTP and set a request URL, then save', async () => { await locators.presets.requestType('http').check(); await locators.presets.requestUrl().fill('https://example.com'); - await locators.presets.save().click(); + await locators.presets.saveBtn().click(); }); await test.step('Verify Presets dot remains visible when request URL is set', async () => { @@ -60,7 +60,7 @@ test.describe('Presets status dot in collection settings', () => { await test.step('Clear the request URL with HTTP selected, then save (returns to default values)', async () => { await locators.presets.requestUrl().fill(''); await expect(locators.presets.requestType('http')).toBeChecked(); - await locators.presets.save().click(); + await locators.presets.saveBtn().click(); }); await test.step('Verify Presets dot is hidden after returning to defaults', async () => { diff --git a/tests/utils/page/locators.ts b/tests/utils/page/locators.ts index ca88e2fd1..4056cf0b0 100644 --- a/tests/utils/page/locators.ts +++ b/tests/utils/page/locators.ts @@ -107,7 +107,7 @@ export const buildCommonLocators = (page: Page) => ({ requestType: (type: 'http' | 'graphql' | 'grpc' | 'ws') => page.getByTestId(`presets-request-type-${type}`), requestUrl: () => page.getByTestId('presets-request-url'), - save: () => page.getByTestId('presets-save-btn') + saveBtn: () => page.getByTestId('presets-save-btn') }, tags: { input: () => page.getByTestId('tag-input').getByRole('textbox'),