mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-23 12:45:38 +00:00
fix(playwright): interpolate request url with odata param (#6428)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"maximized": true,
|
||||
"maximized": false,
|
||||
"lastOpenedCollections": [
|
||||
"{{projectRoot}}/tests/interpolation/collection"
|
||||
]
|
||||
|
||||
@@ -13,7 +13,7 @@ test.describe.serial('URL Interpolation', () => {
|
||||
await locators.sidebar.request('echo-request-url').click();
|
||||
await sendRequest(page, 200);
|
||||
|
||||
const texts = await page.locator('div:nth-child(2) > .CodeMirror-scroll').allInnerTexts();
|
||||
const texts = await page.getByTestId('response-preview-container').locator('.CodeMirror-scroll').allInnerTexts();
|
||||
await expect(texts.some((d) => d.includes(`"url": "/path/some-data"`))).toBe(true);
|
||||
});
|
||||
|
||||
@@ -22,7 +22,7 @@ test.describe.serial('URL Interpolation', () => {
|
||||
await locators.sidebar.request('echo-request-odata').click();
|
||||
await sendRequest(page, 200);
|
||||
|
||||
const texts = await page.locator('div:nth-child(2) > .CodeMirror-scroll').allInnerTexts();
|
||||
const texts = await page.getByTestId('response-preview-container').locator('.CodeMirror-scroll').allInnerTexts();
|
||||
await expect(texts.some((d) => d.includes(`"url": "/path/Category('category123')/Item(item456)/foobar/Tags(%22tag%20test%22)"`))).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user