fix(playwright): interpolate request url with odata param (#6428)

This commit is contained in:
Bijin A B
2025-12-17 12:14:42 +05:30
committed by GitHub
parent 2eb8db9b45
commit 7d317a775b
2 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
{
"maximized": true,
"maximized": false,
"lastOpenedCollections": [
"{{projectRoot}}/tests/interpolation/collection"
]

View File

@@ -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);
});
});