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