fix(rpc): Frame.dblclick is missing notWaitAfter (#3210)
This commit is contained in:
parent
77b1c4b883
commit
84a17f27eb
|
|
@ -924,6 +924,7 @@ export type FrameContentResult = {
|
||||||
export type FrameDblclickParams = {
|
export type FrameDblclickParams = {
|
||||||
selector: string,
|
selector: string,
|
||||||
force?: boolean,
|
force?: boolean,
|
||||||
|
noWaitAfter?: boolean,
|
||||||
modifiers?: ('Alt' | 'Control' | 'Meta' | 'Shift')[],
|
modifiers?: ('Alt' | 'Control' | 'Meta' | 'Shift')[],
|
||||||
position?: {
|
position?: {
|
||||||
x: number,
|
x: number,
|
||||||
|
|
|
||||||
|
|
@ -1049,6 +1049,7 @@ Frame:
|
||||||
parameters:
|
parameters:
|
||||||
selector: string
|
selector: string
|
||||||
force: boolean?
|
force: boolean?
|
||||||
|
noWaitAfter: boolean?
|
||||||
modifiers:
|
modifiers:
|
||||||
type: array?
|
type: array?
|
||||||
items:
|
items:
|
||||||
|
|
|
||||||
|
|
@ -498,6 +498,7 @@ export function createScheme(tChannel: (name: string) => Validator): Scheme {
|
||||||
scheme.FrameDblclickParams = tObject({
|
scheme.FrameDblclickParams = tObject({
|
||||||
selector: tString,
|
selector: tString,
|
||||||
force: tOptional(tBoolean),
|
force: tOptional(tBoolean),
|
||||||
|
noWaitAfter: tOptional(tBoolean),
|
||||||
modifiers: tOptional(tArray(tEnum(['Alt', 'Control', 'Meta', 'Shift']))),
|
modifiers: tOptional(tArray(tEnum(['Alt', 'Control', 'Meta', 'Shift']))),
|
||||||
position: tOptional(tObject({
|
position: tOptional(tObject({
|
||||||
x: tNumber,
|
x: tNumber,
|
||||||
|
|
|
||||||
|
|
@ -154,6 +154,11 @@ describe('Auto waiting', () => {
|
||||||
await page.setContent(`<a href="${server.EMPTY_PAGE}">empty.html</a>`);
|
await page.setContent(`<a href="${server.EMPTY_PAGE}">empty.html</a>`);
|
||||||
await page.click('a', { noWaitAfter: true });
|
await page.click('a', { noWaitAfter: true });
|
||||||
});
|
});
|
||||||
|
it('should work with dblclick noWaitAfter: true', async({page, server}) => {
|
||||||
|
server.setRoute('/empty.html', async () => {});
|
||||||
|
await page.setContent(`<a href="${server.EMPTY_PAGE}">empty.html</a>`);
|
||||||
|
await page.dblclick('a', { noWaitAfter: true });
|
||||||
|
});
|
||||||
it('should work with waitForLoadState(load)', async({page, server}) => {
|
it('should work with waitForLoadState(load)', async({page, server}) => {
|
||||||
const messages = [];
|
const messages = [];
|
||||||
server.setRoute('/empty.html', async (req, res) => {
|
server.setRoute('/empty.html', async (req, res) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue