fix: 3014 - Postman import ignores API Key "in" placement setting and defaults to header (#7968)

* fix: 3014 - Postman import ignores API Key "in" placement setting and defaults to header

* addressed review comments

* addressed review comment

* addressed review comment - added a test id

* addressed reveiew comment
This commit is contained in:
sharan-bruno
2026-05-13 19:16:44 +05:30
committed by GitHub
parent 2c9dc9dcf8
commit 4fa882c67c
11 changed files with 382 additions and 7 deletions

View File

@@ -86,7 +86,14 @@ export const buildCommonLocators = (page: Page) => ({
requestTestId: () => page.getByTestId('request-name'),
generateCodeButton: () => page.locator('#request-actions .infotip').first(),
bodyModeSelector: () => page.getByTestId('request-body-mode-selector'),
bodyEditor: () => page.getByTestId('request-body-editor')
bodyEditor: () => page.getByTestId('request-body-editor'),
pane: () => page.getByTestId('request-pane')
},
auth: {
apiKey: {
placementSelector: () => page.getByTestId('auth-placement-selector'),
placementLabel: () => page.getByTestId('auth-placement-label')
}
},
tags: {
input: () => page.getByTestId('tag-input').getByRole('textbox'),
@@ -118,7 +125,10 @@ export const buildCommonLocators = (page: Page) => ({
locationModal: () => page.locator('[data-testid="import-collection-location-modal"]'),
locationInput: () => page.locator('#collection-location'),
fileInput: () => page.locator('input[type="file"]'),
envOption: (name: string) => page.locator('.dropdown-item').getByText(name, { exact: true })
envOption: (name: string) => page.locator('.dropdown-item').getByText(name, { exact: true }),
parsingError: () => page.getByTestId('import-error-message'),
browseLink: (root?: Locator) => (root ?? page).getByTestId('import-collection-browse-link'),
importButton: (root?: Locator) => (root ?? page).getByTestId('import-collection-location-modal-submit-btn')
},
/**
* Build generic table locators for any table with a testId