chore: format

This commit is contained in:
Siddharth Gelera
2025-09-25 18:17:12 +05:30
parent 9d622c6ea1
commit e6681553f5
2 changed files with 6 additions and 8 deletions

View File

@@ -2,10 +2,9 @@ import { expect, test } from '../../playwright';
import { buildCommonLocators } from './lib/locators';
const MAX_CONNECTION_TIME = 3000;
const BRU_FILE_NAME = /^ws-test-request$/
const BRU_FILE_NAME = /^ws-test-request$/;
test.describe.serial('websockets', () => {
test.setTimeout(2 * 10 * 1000);
test('websocket requests are visible', async ({ pageWithUserData: page, restartApp }) => {
await page.locator('#sidebar-collection-name').click();
@@ -19,7 +18,7 @@ test.describe.serial('websockets', () => {
await locators.connectionControls.connect().click();
await expect(locators.connectionControls.disconnect()).toBeAttached({
timeout: MAX_CONNECTION_TIME
timeout: MAX_CONNECTION_TIME,
});
});
@@ -61,7 +60,7 @@ test.describe.serial('websockets', () => {
await locators.runner().click();
const messages = await locators.messages();
expect(await messages[1].locator('.text-ellipsis').innerText()).toMatch('{ "foo": "bar" }');
expect(await messages[2].locator('.text-ellipsis').innerText()).toMatch('{ "data": { "foo": "bar" } }');

View File

@@ -4,15 +4,14 @@ import { buildCommonLocators } from './lib/locators';
const BRU_FILE_NAME = /^ws-test-request-with-headers$/;
test.describe.serial('headers', () => {
test.setTimeout(2 * 10 * 1000);
test('headers are returned if passed', async ({ pageWithUserData: page, restartApp }) => {
const locators = buildCommonLocators(page);
await page.locator('#sidebar-collection-name').click();
await page.getByTitle(BRU_FILE_NAME).click();
await locators.runner().click();
const messages = await locators.messages();
expect(await messages[2].locator('.text-ellipsis').innerText()).toMatch(/\"(authorization)\"\:\s+\"Dummy\"/)
expect(await messages[2].locator('.text-ellipsis').innerText()).toMatch(/\"(authorization)\"\:\s+\"Dummy\"/);
});
});