mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-09 06:55:03 +00:00
fix: inherit vars and headers from the collection (#5876)
* fix: inherit vars and headers from the collection
This commit is contained in:
committed by
GitHub
parent
c997b91698
commit
77681ca51e
3
tests/websockets/fixtures/collection/collection.bru
Normal file
3
tests/websockets/fixtures/collection/collection.bru
Normal file
@@ -0,0 +1,3 @@
|
||||
vars:pre-request {
|
||||
variable: Variable Value
|
||||
}
|
||||
@@ -11,6 +11,7 @@ ws {
|
||||
|
||||
headers {
|
||||
Authorization: Dummy
|
||||
X-BRUNO-COLLECTION-VAR: {{variable}}
|
||||
}
|
||||
|
||||
body:ws {
|
||||
|
||||
@@ -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\"/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user