Use # insted of @

This commit is contained in:
Yury Semikhatsky 2024-05-14 16:33:37 -07:00
parent cb0648040c
commit 0b6ac63202
2 changed files with 7 additions and 5 deletions

View file

@ -133,6 +133,8 @@ const columnWidth = (column: ColumnName) => {
return 60;
if (column === 'contentType')
return 200;
if (column === 'contextId')
return 60;
return 100;
};
@ -210,7 +212,7 @@ class ContextIdGenerator {
let shortId = this._pagerefToShortId.get(pageref);
if (!shortId) {
++this._lastPageId;
shortId = 'page@' + this._lastPageId;
shortId = 'page#' + this._lastPageId;
this._pagerefToShortId.set(pageref, shortId);
}
return shortId;
@ -223,7 +225,7 @@ class ContextIdGenerator {
let contextId = (contextEntry as any)[ContextIdGenerator._apiRequestContextIdSymbol];
if (!contextId) {
++this._lastApiRequestContextId;
contextId = 'api@' + this._lastApiRequestContextId;
contextId = 'api#' + this._lastApiRequestContextId;
(contextEntry as any)[ContextIdGenerator._apiRequestContextIdSymbol] = contextId;
}
return contextId;

View file

@ -302,7 +302,7 @@ test('should show request source context id', async ({ runUITest, server }) => {
await page.getByText('pass').dblclick();
await page.getByText('Network', { exact: true }).click();
await expect(page.locator('span').filter({ hasText: 'Source' })).toBeVisible();
await expect(page.getByText('page@1')).toBeVisible();
await expect(page.getByText('page@2')).toBeVisible();
await expect(page.getByText('api@1')).toBeVisible();
await expect(page.getByText('page#1')).toBeVisible();
await expect(page.getByText('page#2')).toBeVisible();
await expect(page.getByText('api#1')).toBeVisible();
});