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'),