fix: inherit vars and headers from the collection (#5876)

* fix: inherit vars and headers from the collection
This commit is contained in:
Siddharth Gelera (reaper)
2025-10-24 15:08:10 +05:30
committed by GitHub
parent c997b91698
commit 77681ca51e
6 changed files with 35 additions and 13 deletions

View File

@@ -0,0 +1,3 @@
vars:pre-request {
variable: Variable Value
}

View File

@@ -11,6 +11,7 @@ ws {
headers {
Authorization: Dummy
X-BRUNO-COLLECTION-VAR: {{variable}}
}
body:ws {

View File

@@ -16,5 +16,6 @@ test.describe.serial('headers', () => {
// Check if the message has the authorisation header
await expect(locators.messages().nth(2).locator('.text-ellipsis')).toHaveText(/\"(authorization)\"\:\s+\"Dummy\"/);
await expect(locators.messages().nth(2).locator('.text-ellipsis')).toHaveText(/\"(x-bruno-collection-var)\"\:\s+\"Variable Value\"/);
});
});