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
This commit is contained in:
sharan-bruno
2026-06-09 09:53:11 +05:30
committed by GitHub
parent b9ee1ee523
commit 366d85b141
2 changed files with 4 additions and 4 deletions

View File

@@ -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 () => {

View File

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