Skip to content

Commit cec4477

Browse files
committed
chore: get tabid tool
1 parent 3a13eee commit cec4477

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

tests/index.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ describe('e2e', () => {
102102
continue;
103103
}
104104
if (
105-
maybeTool.annotations?.conditions?.includes('experimentalInteropTools')
105+
maybeTool.annotations?.conditions?.includes(
106+
'experimentalInteropTools',
107+
)
106108
) {
107109
continue;
108110
}
@@ -126,7 +128,6 @@ describe('e2e', () => {
126128
);
127129
});
128130

129-
130131
it('has experimental interop tools', async () => {
131132
await withClient(
132133
async client => {

tests/tools/pages.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,9 @@ describe('pages', () => {
328328
it('returns the tab id', async () => {
329329
await withMcpContext(async (response, context) => {
330330
const page = context.getSelectedPage();
331+
console.log(page);
332+
// @ts-expect-error _tabId is internal.
333+
assert.ok(typeof page._tabId === 'string');
331334
// @ts-expect-error _tabId is internal.
332335
page._tabId = 'test-tab-id';
333336
await getTabId.handler({params: {pageId: 1}}, response, context);

0 commit comments

Comments
 (0)