feat: replace send button with Send/Cancel buttons on request url (#7675)

* feat: replace request send icon with Send/Cancel buttons

---------

Co-authored-by: naman-bruno <naman@usebruno.com>
This commit is contained in:
gopu-bruno
2026-04-07 13:42:09 +05:30
committed by GitHub
parent 4d6032ba0d
commit 476d30a49e
12 changed files with 125 additions and 85 deletions

View File

@@ -141,7 +141,7 @@ const createUntitledRequest = async (
if (url) {
await page.locator('#request-url .CodeMirror').click();
await page.locator('#request-url textarea').fill(url);
await page.locator('#send-request').getByTitle('Save Request').click();
await page.locator('#request-actions').getByTitle('Save Request').click();
await page.waitForTimeout(200);
}

View File

@@ -83,7 +83,7 @@ export const buildCommonLocators = (page: Page) => ({
newRequestUrl: () => page.locator('#new-request-url .CodeMirror'),
requestNameInput: () => page.getByPlaceholder('Request Name'),
requestTestId: () => page.getByTestId('request-name'),
generateCodeButton: () => page.locator('#send-request .infotip').first(),
generateCodeButton: () => page.locator('#request-actions .infotip').first(),
bodyModeSelector: () => page.getByTestId('request-body-mode-selector'),
bodyEditor: () => page.getByTestId('request-body-editor')
},