mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: Fix BiDi session.status Param type (#9723)
This commit is contained in:
parent
dcd6a3e1da
commit
9910aae2f7
@ -57,7 +57,7 @@ interface Commands {
|
||||
returnType: {sessionId: string};
|
||||
};
|
||||
'session.status': {
|
||||
params: {context: string}; // TODO: Update Types in chromium bidi
|
||||
params: object;
|
||||
returnType: Bidi.Session.StatusResult;
|
||||
};
|
||||
'session.subscribe': {
|
||||
|
@ -36,11 +36,13 @@ describe('WebDriver BiDi', () => {
|
||||
it('should work', async () => {
|
||||
const transport = new TestConnectionTransport();
|
||||
const connection = new Connection(transport);
|
||||
const responsePromise = connection.send('session.status', {
|
||||
context: 'context',
|
||||
const responsePromise = connection.send('session.new', {
|
||||
capabilities: {
|
||||
proxy: {},
|
||||
},
|
||||
});
|
||||
expect(transport.sent).toEqual([
|
||||
`{"id":1,"method":"session.status","params":{"context":"context"}}`,
|
||||
`{"id":1,"method":"session.new","params":{"capabilities":{"proxy":{}}}}`,
|
||||
]);
|
||||
const id = JSON.parse(transport.sent[0]!).id;
|
||||
const rawResponse = {
|
||||
|
Loading…
Reference in New Issue
Block a user